diff --git a/app/assets/javascripts/admin/index_utils/services/pending_changes.js.coffee b/app/assets/javascripts/admin/index_utils/services/pending_changes.js.coffee index 15626b1479..3581b4921a 100644 --- a/app/assets/javascripts/admin/index_utils/services/pending_changes.js.coffee +++ b/app/assets/javascripts/admin/index_utils/services/pending_changes.js.coffee @@ -16,7 +16,7 @@ angular.module("admin.indexUtils").factory "pendingChanges", ($q, resources, Sta delete @pendingChanges["#{id}"]["#{attr}"] delete @pendingChanges["#{id}"] if @changeCount( @pendingChanges["#{id}"] ) < 1 - submitAll: (form=null) => + submitAll: (event=null, form=null) => all = [] @errors = [] StatusMessage.display('progress', "Saving...") diff --git a/app/views/admin/customers/index.html.haml b/app/views/admin/customers/index.html.haml index ef3ef7e7f0..f605ec3e5a 100644 --- a/app/views/admin/customers/index.html.haml +++ b/app/views/admin/customers/index.html.haml @@ -38,7 +38,8 @@ .row.margin-bottom-50{ ng: { show: "!RequestMonitor.loading && filteredCustomers.length > 0" } } %form{ name: "customers_form" } - %save-bar{ save: "submitAll(customers_form)", form: "customers_form" } + %save-bar{ buttons: "[{ text: 'Save Changes', action: submitAll, param: customers_form, class: 'red' }]", form: "customers_form" } + %table.index#customers %col.email{ width: "20%"} %col.code{ width: "20%"}