Commit 11dfd7a2

mo khan <mo@mokhan.ca>
2014-07-06 02:57:23
disable the save button on the edit view until something has changed.
1 parent 39ec2aa
Changed files (1)
app
assets
javascripts
backbone
app/assets/javascripts/backbone/views/cakes/edit_view.js.coffee
@@ -37,6 +37,7 @@ class CakeSide.Views.Cakes.EditView extends Marionette.CompositeView
   onRender: ->
     @$("#cake_category_id").val(@model.category_id())
     @$('#cake_tags').tagit({ availableTags: ALL_TAGS })
+    @disableSaveButton()
 
   savedSuccessfully: (cake) =>
     window.location.hash = "cakes/#{cake.id}"