From 0c49a9fa4ddc4ea54134babde77bf0a757e6c8b1 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Fri, 5 Sep 2014 15:14:39 +0200 Subject: [PATCH] ux improvements --- .../javascripts/supplier/app/templates/active_list.emblem | 2 +- .../javascripts/user/app/routes/application_route.js.coffee.erb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/supplier/app/templates/active_list.emblem b/app/assets/javascripts/supplier/app/templates/active_list.emblem index 6941b1c1..95d1283f 100644 --- a/app/assets/javascripts/supplier/app/templates/active_list.emblem +++ b/app/assets/javascripts/supplier/app/templates/active_list.emblem @@ -17,7 +17,7 @@ td.actions i.fa.fa-bell.fa-stack-small i.fa.fa-ban.revoke App.MarkListHelpedButtonView content=view.content - App.RemoveListNeedsPaymentView content=view.content + /App.RemoveListNeedsPaymentView content=view.content App.CloseListButtonView content=view.content button.show-list.button{action "showList" view.content.id}: span diff --git a/app/assets/javascripts/user/app/routes/application_route.js.coffee.erb b/app/assets/javascripts/user/app/routes/application_route.js.coffee.erb index 8f4b838b..28a38bc3 100644 --- a/app/assets/javascripts/user/app/routes/application_route.js.coffee.erb +++ b/app/assets/javascripts/user/app/routes/application_route.js.coffee.erb @@ -33,11 +33,13 @@ App.ApplicationRoute = Ember.Route.extend ok: options.ok listNeedsPayment: -> @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").then (res) => #@set('list.needs_payment', true) # also done by faye listNeedsHelp: -> @get('controller').secured -> + @set 'list.needs_help', true Ember.$.post "#{$data_host}/user/needs_help.json" #Ember.$.post("#{$data_host}/user/needs_help.json").then (res) => #@set('list.needs_help', true) # also done by faye