Skip to content

Commit

Permalink
future has focus too
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Mar 14, 2014
1 parent 482fa3b commit 552f34e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions coffee/menu.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ app.menu = new Vue
doFocus: (index) ->
taskList = @$data.working.splice index, 1
@$data.working.unshift taskList[0]
doFocusFutures: (index) ->
taskList = @$data.futures.splice index, 1
@$data.futures.unshift taskList[0]
doRemove: (index) ->
@$data.working.splice index, 1
3 changes: 2 additions & 1 deletion make.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ target.dev = ->
exec 'pkill -f doodle', ->
command 'doodle index.html build/build.js log:yes'
fs.watch 'view', interva: 300, ->
exec 'jade -o ./ view/index.jade'
exec 'jade -o ./ view/index.jade', ->
station.reload 'repo/todolist'
fs.watch 'coffee', interval: 300, (type, filename) ->
if type in ['create', 'change']
exec "coffee -o src/ -bc coffee/#{filename}"
Expand Down
11 changes: 6 additions & 5 deletions view/menu.jade
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
.title(v-model='title')
.content(v-model='content')
.handlers
span.button.do-working(v-on='click: doWork($index)') work
span.button(v-on='click: doFocusFutures($index)') focus
span.button(v-on='click: doWork($index)') work
.empty(v-show='futures.length == 0')
span futures is empty

Expand All @@ -27,10 +28,10 @@
.title(v-model='title', contenteditable, v-focus-editable)
.content(v-model='content', contenteditable)
.handlers
span.button.do-futures(v-on='click: doFocus($index)') focus
span.button.do-futures(v-on='click: doFutures($index)') futures
span.button.do-history(v-on='click: doHistory($index)') history
span.button.do-history(v-on='click: doRemove($index)') remove
span.button(v-on='click: doFocus($index)') focus
span.button(v-on='click: doFutures($index)') futures
span.button(v-on='click: doHistory($index)') history
span.button(v-on='click: doRemove($index)') remove
.empty(v-show='working.length == 0')
span working is empty

Expand Down

0 comments on commit 552f34e

Please sign in to comment.