hooch 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/hooch.js +16 -6
- data/lib/hooch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a678b9f63ccf10151fc71f44550b236169e6e010
|
|
4
|
+
data.tar.gz: cde4ccbb39d9347fd3fbee9b42b6b9951db13e84
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab664c4e7ff33f8816fabadbded64be0e660c4687fc72f17cea5b25de744878c35077d87beda21f03c34d991d6cb32da95e5eec1ada79eb11a21e3fd45ddea58
|
|
7
|
+
data.tar.gz: 632dc3910e8ea5c1acdb3828a36622ec136b079718144f7c50171c0e033f4b0811f488cefbc70dd9a0be0fee1b34dd9220dc9449e38c3b7901d995fc7157f6e5
|
|
@@ -969,12 +969,22 @@ var initHooch = function(){
|
|
|
969
969
|
this.height = this.$sort_element.height()
|
|
970
970
|
}
|
|
971
971
|
this.dragging = false
|
|
972
|
-
this.
|
|
973
|
-
this
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
972
|
+
this.determineIfSortable();
|
|
973
|
+
if(this.sortable){
|
|
974
|
+
this.getDragHandle()
|
|
975
|
+
this.$sort_element.css({cursor: ''});
|
|
976
|
+
this.$drag_handle.css({cursor: 'move'});
|
|
977
|
+
var sort_element = this
|
|
978
|
+
this.$drag_handle.on('mousedown', $.proxy(sort_element.onMousedown, sort_element))
|
|
979
|
+
this.$sort_element.on('dragstart', function(e){hooch.pauseEvent(e); return false})
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
determineIfSortable: function(){
|
|
983
|
+
if(this.$sort_element.find('[data-sorter]').length > 0){
|
|
984
|
+
this.sortable = false
|
|
985
|
+
} else {
|
|
986
|
+
this.sortable = true
|
|
987
|
+
}
|
|
978
988
|
},
|
|
979
989
|
onMousedown: function(e){
|
|
980
990
|
if(1 == e.which){
|
data/lib/hooch/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hooch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Draut
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|