Sha256: 1b62158c76c6807d94343647cbbe242c958236bc8b92183bb768acf7eb7a234a
Contents?: true
Size: 961 Bytes
Versions: 16
Compression:
Stored size: 961 Bytes
Contents
Dashboard.ContributionsTabController = Ember.ArrayController.extend Dashboard.SearchableBaseController, Dashboard.PaginableControllerMixin, baseRouteName: 'contributions' defaultSearchFields: query: null between_values: initial: null final: null actions: changeState: (contribution, action)-> contributionUrl = Dashboard.ApplicationAdapter.prototype.buildURL('contributions', contribution.id) $.ajax url: "#{contributionUrl}/#{action}", type: 'PUT' @get('target').send('refresh') destroy: (contribution)-> if window.confirm(Ember.I18n.t('words.are_you_sure_to_delete')) contribution.destroyRecord() @removeObjects(contribution) Dashboard.ContributionsSearchController = Dashboard.ContributionsTabController.extend Dashboard.SearchableController, baseRouteName: 'contributions' Dashboard.ContributionsShowController = Ember.ObjectController.extend Dashboard.ModalControllerMixin
Version data entries
16 entries across 16 versions & 1 rubygems