Skip to content

Commit

Permalink
added options to js activerecord_sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
aishek committed Jan 14, 2016
1 parent 1624d01 commit 840c0e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/assets/javascripts/sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@
};


$.fn.activerecord_sortable = function() {
$.fn.activerecord_sortable = function(options) {
var target = $(this);
target.each(function(){
var self = $(this);
var sortable_instance = new Sortable(self);
var sortable_instance = new Sortable(self, options);

self.data('sortable-instance', sortable_instance);
});
Expand Down

0 comments on commit 840c0e3

Please sign in to comment.