hooch 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/hooch.js +6 -17
- data/lib/hooch/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 537457548bc13651ff5a0cd5fdb4c289c9bed85b
|
4
|
+
data.tar.gz: f740bfa709fd619d94ee26482efb03796a44fb2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f9989d68446177848eec0b53d4805abbbd5134896eac76401b5dc6ea700366f4c375aa07ae8657cf0bac1d21e350935b83e9ce293c3dceb7bbcc65faa6c3946
|
7
|
+
data.tar.gz: c7fad68f89334bc300295b7abbfc0cbc450a688f9ab1f4ef4b7f656fb74141e9a5c4a8071c11d8010a7af18744499beb4eaae48c2eee215c912e71c93bae3fd3
|
@@ -627,7 +627,6 @@ var initHooch = function(){
|
|
627
627
|
this.$sorter = $sorter
|
628
628
|
$sorter.data('sorter',this)
|
629
629
|
this.is_visible = $sorter.is(':visible')
|
630
|
-
this.allow_nested = typeof($sorter.data('allow-nested')) != 'undefined'
|
631
630
|
if(this.is_visible){
|
632
631
|
this.setWidth();
|
633
632
|
this.getSortElements()
|
@@ -1022,22 +1021,12 @@ var initHooch = function(){
|
|
1022
1021
|
this.height = this.$sort_element.height()
|
1023
1022
|
}
|
1024
1023
|
this.dragging = false
|
1025
|
-
this.
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
this.$drag_handle.on('mousedown', $.proxy(sort_element.onMousedown, sort_element))
|
1032
|
-
this.$sort_element.on('dragstart', function(e){hooch.pauseEvent(e); return false})
|
1033
|
-
}
|
1034
|
-
},
|
1035
|
-
determineIfSortable: function(){
|
1036
|
-
if(this.$sort_element.find('[data-sorter]').length > 0 && !this.sorter.allow_nested){
|
1037
|
-
this.sortable = false
|
1038
|
-
} else {
|
1039
|
-
this.sortable = true
|
1040
|
-
}
|
1024
|
+
this.getDragHandle()
|
1025
|
+
this.$sort_element.css({cursor: ''});
|
1026
|
+
this.$drag_handle.css({cursor: 'move'});
|
1027
|
+
var sort_element = this
|
1028
|
+
this.$drag_handle.on('mousedown', $.proxy(sort_element.onMousedown, sort_element))
|
1029
|
+
this.$sort_element.on('dragstart', function(e){hooch.pauseEvent(e); return false})
|
1041
1030
|
},
|
1042
1031
|
onMousedown: function(e){
|
1043
1032
|
if(1 == e.which){
|
data/lib/hooch/version.rb
CHANGED