Sha256: ba272ad8a513c941d57aba19ae0dc6ea1b2e2d0b1cf0f23444f66684063f7780
Contents?: true
Size: 693 Bytes
Versions: 16
Compression:
Stored size: 693 Bytes
Contents
Dashboard.TagsTabController = Ember.ArrayController.extend Dashboard.PaginableControllerMixin, actions: destroy: (item)-> if window.confirm(Ember.I18n.t('words.are_you_sure_to_delete')) item.destroyRecord() @removeObjects(item) Dashboard.TagsEditController = Ember.ObjectController.extend actions: save: -> tag = @get('model') tag.save() .then => @transitionToRoute 'tags' .catch -> # must supply catch promise, otherwise Ember will throw a # 'backend rejected the commit' error. cancel: -> @transitionToRoute('tags') Dashboard.TagsNewController = Dashboard.TagsEditController.extend()
Version data entries
16 entries across 16 versions & 1 rubygems