Sha256: c3b9dcfe3608f022e5ddaa208936e825fed9ccf0e79ced624b75281913faaa69

Contents?: true

Size: 327 Bytes

Versions: 10

Compression:

Stored size: 327 Bytes

Contents

(function($) {

  $.fn.railsSortable = function(options) {
    var defaults = {
      axis: 'y',
      scroll: 'true'
    };

    var setting = $.extend(defaults, options);
    setting["update"] = function() {
      $.post("/sortable/reorder", $(this).sortable('serialize'))
    }

    this.sortable(setting);
  };

})(jQuery);

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_sortable-1.1.2 vendor/assets/javascripts/plugin.js
rails_sortable-1.1.1 vendor/assets/javascripts/plugin.js
rails_sortable-1.1.0 vendor/assets/javascripts/plugin.js
rails_sortable-1.0.0 vendor/assets/javascripts/plugin.js
rails_sortable-0.1.1 vendor/assets/javascripts/plugin.js
rails_sortable-0.1.0 vendor/assets/javascripts/plugin.js
rails_sortable-0.0.5 vendor/assets/javascripts/plugin.js
rails_sortable-0.0.4 vendor/assets/javascripts/plugin.js
rails_sortable-0.0.3 vendor/assets/javascripts/plugin.js
rails_sortable-0.0.2 vendor/assets/javascripts/rails_sortable.js