Sha256: 78f92d6e997db3e2b3ab206fd92da6d7083126e514cf9b5bdfb6d9ff2b752959
Contents?: true
Size: 1.92 KB
Versions: 1
Compression:
Stored size: 1.92 KB
Contents
{:uriI"file:///Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js.erb?type=application/javascript&pipeline=self&id=1c6f0a6c822d7805bbcd86760d8b491c12cb85820999b727bc2b5849b65f8c16:ET:load_pathI"N/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts;T: filenameI"\/Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js.erb;T: nameI"plugin;T:logical_pathI"plugin.self.js;T:content_typeI"application/javascript;T:sourceI"E(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); } $.ajax({ type: 'POST', url: "/sortable/reorder", dataType: 'json', contentType: 'application/json', data: JSON.stringify(makePostData($(this))), }); } this.sortable(setting); }; var makePostData = function($sortable) { var data = $.map($sortable.sortable('toArray'), function(sortableId) { klassAndId = sortableId.split(/[-=_]/); return { klass: klassAndId[0], id: klassAndId[1] }; }); return { rails_sortable: data }; }; })(jQuery); ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"gprocessors:type=application/javascript&file_type=application/javascript&engines=.erb&pipeline=self;TTI"jfile-digest:///Users/madmax/Programs/itmammoth/rails_sortable/vendor/assets/javascripts/plugin.js.erb;TTF: requiredo;;} F:stubbedo;;} F: linkso;;} F:charsetI" utf-8;F:digest"%hr'l^7tt\͟ct;ά:lengthiE:dependencies_digest"%rOȯE̛L,:idI"E1c6f0a6c822d7805bbcd86760d8b491c12cb85820999b727bc2b5849b65f8c16;F: mtimel+-[
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_sortable-1.3.0 | spec/dummy/tmp/cache/assets/sprockets/v3.0/lR/lRh2Q6VkXm7NexRAASgUyKxDUR446b31T8cGJ7_grsk.cache |