{:uriI"Ëfile:///Users/ColinWalker/workspace/cms/PagesCMS/app/assets/javascripts/pages_cms/sortable.js?type=application/javascript&pipeline=self&id=e4cd0c8b6e8e5657fb0874fe96127aa121ab00a3fa015290f689967869ee2571:ET:load_pathI"E/Users/ColinWalker/workspace/cms/PagesCMS/app/assets/javascripts;F: filenameI"[/Users/ColinWalker/workspace/cms/PagesCMS/app/assets/javascripts/pages_cms/sortable.js;T: nameI"pages_cms/sortable;T:logical_pathI"pages_cms/sortable.self.js;T:content_typeI"application/javascript;T: sourceI"þ/* HTML5 Sortable (http://farhadi.ir/projects/html5sortable) * Released under the MIT license. */ (function(a){var b,c=a();a.fn.sortable=function(d){var e=String(d);return d=a.extend({connectWith:!1},d),this.each(function(){if(/^enable|disable|destroy$/.test(e)){var f=a(this).children(a(this).data("items")).attr("draggable",e=="enable");e=="destroy"&&f.add(this).removeData("connectWith items").off("dragstart.h5s dragend.h5s selectstart.h5s dragover.h5s dragenter.h5s drop.h5s");return}var g,h,f=a(this).children(d.items),i=a("<"+(/^ul|ol$/i.test(this.tagName)?"li":"div")+' class="sortable-placeholder">');f.find(d.handle).mousedown(function(){g=!0}).mouseup(function(){g=!1}),a(this).data("items",d.items),c=c.add(i),d.connectWith&&a(d.connectWith).add(this).data("connectWith",d.connectWith),f.attr("draggable","true").on("dragstart.h5s",function(c){if(d.handle&&!g)return!1;g=!1;var e=c.originalEvent.dataTransfer;e.effectAllowed="move",e.setData("Text","dummy"),h=(b=a(this)).addClass("sortable-dragging").index()}).on("dragend.h5s",function(){b.removeClass("sortable-dragging").show(),c.detach(),h!=b.index()&&f.parent().trigger("sortupdate",{item:b}),b=null}).not("a[href], img").on("selectstart.h5s",function(){return this.dragDrop&&this.dragDrop(),!1}).end().add([this,i]).on("dragover.h5s dragenter.h5s drop.h5s",function(e){return!f.is(b)&&d.connectWith!==a(b).parent().data("connectWith")?!0:e.type=="drop"?(e.stopPropagation(),c.filter(":visible").after(b),!1):(e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="move",f.is(this)?(d.forcePlaceholderSize&&i.height(b.outerHeight()),b.hide(),a(this)[i.index()È:idI"Ee4cd0c8b6e8e5657fb0874fe96127aa121ab00a3fa015290f689967869ee2571;F: mtimel+íP