Sha256: da277ffc65f2bbe0a3b437faab46be4220cda377f8452aac6c1af5711863a585
Contents?: true
Size: 1.78 KB
Versions: 4
Compression:
Stored size: 1.78 KB
Contents
{:uriI"file:///Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js?type=application/javascript&pipeline=self&id=68ba1cecf42f3c2fa4df0deec405a9d18563cc445371413d4883f792f908f66e:ET:load_pathI"N/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts;T: filenameI"X/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js;T: nameI"plugin;T:logical_pathI"plugin.self.js;T:content_typeI"application/javascript;T:sourceI"(function($) { $.fn.railsSortable = function(options) { options = options || {}; var setting = $.extend({ axis: 'y', scroll: 'true', }, options); setting.update = function(event, ui) { if (typeof options.update === 'function') { options.update(event, ui); } $.post("/sortable/reorder", makePostData($(this))); } this.sortable(setting); }; var makePostData = function($sortable) { var data = {}, klass, id; $sortable.sortable('toArray').forEach(function(sortableId) { [klass, id] = sortableId.split(/[-=_]/); (data[klass] || (data[klass] = [])).push(Number(id)); }); return { rails_sortable: data }; }; })(jQuery); ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ffile-digest:///Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js;TTF: requiredo;;} F:stubbedo;;} F: linkso;;} F:charsetI" utf-8;F:digest"%тԿ$. puWIl]h2:lengthi:dependencies_digest"%ؖ.538tkSD\5r7;gZp@:idI"E68ba1cecf42f3c2fa4df0deec405a9d18563cc445371413d4883f792f908f66e;F: mtimel+Z
Version data entries
4 entries across 4 versions & 1 rubygems