Sha256: e2a3934a607660c12158bd4daf3f51e4035f60f4126947ba73f74cf3382f3298

Contents?: true

Size: 405 Bytes

Versions: 8

Compression:

Stored size: 405 Bytes

Contents

pageflow.orderedCollection = {
  saveOrder: function() {
    var parentModel = this.parentModel;

    Backbone.sync('patch', parentModel, {
      url: this.url() + '/order',
      attrs: {ids: this.pluck('id')},

      success: function(response) {
        parentModel.trigger('sync', parentModel, response, {});
        parentModel.trigger('sync:order', parentModel, response, {});
      }
    });
  }
};

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pageflow-0.2.1 app/assets/javascripts/pageflow/editor/collections/mixins/ordered_collection.js
pageflow-0.2.0 app/assets/javascripts/pageflow/editor/collections/mixins/ordered_collection.js
pageflow-0.1.0 app/assets/javascripts/pageflow/editor/collections/mixins/ordered_collection.js
pageflow-0.0.5 app/assets/javascripts/pageflow/editor/collections/mixins/ordered_collection.js
pageflow-0.0.4 app/assets/javascripts/pageflow/editor/collections/mixins/ordered_collection.js
pageflow-0.0.3 app/assets/javascripts/pageflow/editor/collections/mixins/ordered_collection.js
pageflow-0.0.2 app/assets/javascripts/pageflow/editor/collections/mixins/ordered_collection.js
pageflow-0.0.1 app/assets/javascripts/pageflow/editor/collections/mixins/ordered_collection.js