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: 7ac60bf7f1a6ccd1aceea39d4b4d3f87f774dc7f
4
- data.tar.gz: 7b5ee27cffd3f57f28ee2728a369bf6c05a65320
3
+ metadata.gz: 2f7a36300f9ef71c0beb21d72224178759710b88
4
+ data.tar.gz: 4c9cea62c9091d7baefbc4d86ecca27dc67fc9c7
5
5
  SHA512:
6
- metadata.gz: bda8b3a1564d282896bbbdd13fad8e5b4c5f2108b092bdc40645b64c16ab87fec457e93e236a361ecc1496f99e979aa2e4ddbf377f75cbe0a9259864c4896f0d
7
- data.tar.gz: 22272341d2bfa150f175f8af6cd324c539b254acabffc21f73a3fa250bc9c1f15a6e48ad3bdb34ce8bd415adfc3d2e404bea56997dea7a2ead772631f73941ea
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,5 +1,5 @@
1
1
  module Spina
2
2
  module Template
3
- VERSION = "0.2.8"
3
+ VERSION = "0.2.9"
4
4
  end
5
5
  end
@@ -1,3 +1,2 @@
1
- /* HTML5 Sortable (http://farhadi.ir/projects/html5sortable)
2
- * Released under the MIT license.
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bram Jetten