spina-template 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f7a36300f9ef71c0beb21d72224178759710b88
|
4
|
+
data.tar.gz: 4c9cea62c9091d7baefbc4d86ecca27dc67fc9c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0f39d18df206321ce46fe36843b87a2a929777b366a56b893732dc5f69b05e032b1955954242e1ed7c400fbabbe39e57af9fe35272f45520d3f71f4a9aab1b2
|
7
|
+
data.tar.gz: 67d91fb7a5b7aad687d874541239245abcd4b6e8dcfc7f49f71d76f39f3086dd5c373ba5beeaf0ebd2ae4da5ecb270137d0190a2dce3e36b571e6eda83b92d1b
|
@@ -344,9 +344,6 @@ input.datepicker
|
|
344
344
|
top: auto
|
345
345
|
@include linear-gradient(bottom, transparent, #ddd)
|
346
346
|
|
347
|
-
ul li.sortable-placeholder
|
348
|
-
background: #f9f9f9
|
349
|
-
|
350
347
|
ul li .structure-item-remove
|
351
348
|
color: #999
|
352
349
|
float: right
|
@@ -369,6 +366,9 @@ input.datepicker
|
|
369
366
|
margin-right: 8px
|
370
367
|
vertical-align: middle
|
371
368
|
|
369
|
+
ul li.sortable-placeholder
|
370
|
+
background: #f9f9f9
|
371
|
+
|
372
372
|
ul li.active a
|
373
373
|
color: $primary-color
|
374
374
|
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
*/(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()<a(this).index()?"after":"before"](i),c.not(i).detach()):!c.is(this)&&!a(this).children(d.items).length&&(c.detach(),a(this).append(i)),!1)})})}})(jQuery);
|
1
|
+
!function(t){"use strict";var e,r,a=t();t.fn.sortable=function(s){var i=String(s);return s=t.extend({connectWith:!1,placeholder:null,dragImage:null},s),this.each(function(){var n,d=t(this).children(s.items),o=s.handle?d.find(s.handle):d;if("reload"===i&&(t(this).children(s.items).off("dragstart.h5s dragend.h5s selectstart.h5s dragover.h5s dragenter.h5s drop.h5s"),t(this).off("dragover.h5s dragenter.h5s drop.h5s")),/^enable|disable|destroy$/.test(i)){var h=t(this).children(t(this).data("items")).attr("draggable","enable"===i);return t(this).attr("aria-dropeffect",/^disable|destroy$/.test(i)?"none":"move"),void("destroy"===i&&(t(this).off("sortstart sortupdate"),t(this).removeData("opts"),h.add(this).removeData("connectWith items").off("dragstart.h5s dragend.h5s dragover.h5s dragenter.h5s drop.h5s").off("sortupdate"),o.off("selectstart.h5s")))}var l=t(this).data("opts");"undefined"==typeof l?t(this).data("opts",s):s=l;var g,f,c=null===s.placeholder?t("<"+(/^ul|ol$/i.test(this.tagName)?"li":"div")+' class="sortable-placeholder"/>'):t(s.placeholder).addClass("sortable-placeholder");t(this).data("items",s.items),a=a.add(c),s.connectWith&&t(s.connectWith).add(this).data("connectWith",s.connectWith),d.attr("role","option"),d.attr("aria-grabbed","false"),o.attr("draggable","true").not("a[href], img").on("selectstart.h5s",function(){return this.dragDrop&&this.dragDrop(),!1}).end(),d.on("dragstart.h5s",function(a){a.stopImmediatePropagation();var i=a.originalEvent.dataTransfer;i.effectAllowed="move",i.setData("text",""),s.dragImage&&i.setDragImage&&i.setDragImage(s.dragImage,0,0),n=(e=t(this)).addClass("sortable-dragging").attr("aria-grabbed","true").index(),r=e.outerHeight(),g=t(this).parent(),e.parent().triggerHandler("sortstart",{item:e,startparent:g})}).on("dragend.h5s",function(){e&&(e.removeClass("sortable-dragging").attr("aria-grabbed","false").show(),a.detach(),f=t(this).parent(),(n!==e.index()||g.get(0)!==f.get(0))&&e.parent().triggerHandler("sortupdate",{item:e,oldindex:n,startparent:g,endparent:f}),e=null,r=null)}).add([this,c]).on("dragover.h5s dragenter.h5s drop.h5s",function(i){if(!d.is(e)&&s.connectWith!==t(e).parent().data("connectWith"))return!0;if("drop"===i.type)return i.stopPropagation(),a.filter(":visible").after(e),e.trigger("dragend.h5s"),!1;if(i.preventDefault(),i.originalEvent.dataTransfer.dropEffect="move",d.is(this)){var n=t(this).outerHeight();if(s.forcePlaceholderSize&&c.height(r),n>r){var o=n-r,h=t(this).offset().top;if(c.index()<t(this).index()&&i.originalEvent.pageY<h+o)return!1;if(c.index()>t(this).index()&&i.originalEvent.pageY>h+n-o)return!1}e.hide(),t(this)[c.index()<t(this).index()?"after":"before"](c),a.not(c).detach()}else a.is(this)||t(this).children(s.items).length||(a.detach(),t(this).append(c));return!1})})}}(jQuery);
|
2
|
+
//# sourceMappingURL=html.sortable.min.js.map
|