ux improvements

This commit is contained in:
2014-09-05 15:14:39 +02:00
parent a2618eb42e
commit 0c49a9fa4d
2 changed files with 3 additions and 1 deletions
@@ -17,7 +17,7 @@ td.actions
i.fa.fa-bell.fa-stack-small i.fa.fa-bell.fa-stack-small
i.fa.fa-ban.revoke i.fa.fa-ban.revoke
App.MarkListHelpedButtonView content=view.content App.MarkListHelpedButtonView content=view.content
App.RemoveListNeedsPaymentView content=view.content /App.RemoveListNeedsPaymentView content=view.content
App.CloseListButtonView content=view.content App.CloseListButtonView content=view.content
button.show-list.button{action "showList" view.content.id}: span button.show-list.button{action "showList" view.content.id}: span
@@ -33,11 +33,13 @@ App.ApplicationRoute = Ember.Route.extend
ok: options.ok ok: options.ok
listNeedsPayment: -> listNeedsPayment: ->
@get('controller').secured -> @get('controller').secured ->
@set 'list.needs_payment', true
Ember.$.post "#{$data_host}/user/list_needs_payment.json" Ember.$.post "#{$data_host}/user/list_needs_payment.json"
#Ember.$.post("#{$data_host}/user/list_needs_payment.json").then (res) => #Ember.$.post("#{$data_host}/user/list_needs_payment.json").then (res) =>
#@set('list.needs_payment', true) # also done by faye #@set('list.needs_payment', true) # also done by faye
listNeedsHelp: -> listNeedsHelp: ->
@get('controller').secured -> @get('controller').secured ->
@set 'list.needs_help', true
Ember.$.post "#{$data_host}/user/needs_help.json" Ember.$.post "#{$data_host}/user/needs_help.json"
#Ember.$.post("#{$data_host}/user/needs_help.json").then (res) => #Ember.$.post("#{$data_host}/user/needs_help.json").then (res) =>
#@set('list.needs_help', true) # also done by faye #@set('list.needs_help', true) # also done by faye