Skip to content

Commit

Permalink
show mask on filter
Browse files Browse the repository at this point in the history
  • Loading branch information
piascikj committed Apr 20, 2018
1 parent d16405a commit 83be08e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/views/imdone-atom-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,11 @@ class ImdoneAtomView extends ScrollView
@emitter.emit 'board.update'

filter: (text) ->
@showMask()
text = @getFilter() unless text
if text == ''
@board.find('.task').show()
@emitter.emit 'board.update'
@showTasks(@imdoneRepo.getTasks())
else
@showMask()
@board.find('.task').hide()
@board.find('.task a[href^="#filter/"]').removeClass('inline-block highlight-info')
try @board.find(".task a[href='#filter/#{text}']").addClass('inline-block highlight-info')
Expand Down

0 comments on commit 83be08e

Please sign in to comment.