hooch 0.8.5 → 0.9.0
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 +15 -2
- data/lib/hooch/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a170476cbe77cfea18a0cb19690682b6b68b6fb8
|
4
|
+
data.tar.gz: 99ea410d8d7471a265cf4f641feb47a4f2b16136
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32b1b3c887f907dece42f039a07b84676a8025e2a36614d619494cb1c96217aaa1aba675ec3210a19f3fd5ff289d1a4f0c230848f016b89a97a8b270e097b0e9
|
7
|
+
data.tar.gz: 90a2c9087c8d80a13bcfd2743fa396b1b1cd3ae52344b9366da430c144898bceee548ad1ba0163e53f42d1a2581b8fd5b65578ceeed2bb1dbca2ac4e29c68ade
|
@@ -627,6 +627,7 @@ 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'
|
630
631
|
if(this.is_visible){
|
631
632
|
this.setWidth();
|
632
633
|
this.getSortElements()
|
@@ -1032,7 +1033,7 @@ var initHooch = function(){
|
|
1032
1033
|
}
|
1033
1034
|
},
|
1034
1035
|
determineIfSortable: function(){
|
1035
|
-
if(this.$sort_element.find('[data-sorter]').length > 0){
|
1036
|
+
if(this.$sort_element.find('[data-sorter]').length > 0 && !this.sorter.allow_nested){
|
1036
1037
|
this.sortable = false
|
1037
1038
|
} else {
|
1038
1039
|
this.sortable = true
|
@@ -1050,7 +1051,7 @@ var initHooch = function(){
|
|
1050
1051
|
this.pressed = false
|
1051
1052
|
},
|
1052
1053
|
getDragHandle: function(){
|
1053
|
-
this.$drag_handle = this.$sort_element.
|
1054
|
+
this.$drag_handle = this.$sort_element.findExclude('[data-drag-handle]','[data-sorter]')
|
1054
1055
|
if(this.$drag_handle.length < 1){
|
1055
1056
|
this.$drag_handle = this.$sort_element
|
1056
1057
|
}
|
@@ -1362,6 +1363,18 @@ var initHooch = function(){
|
|
1362
1363
|
e.cancelBubble=true;
|
1363
1364
|
e.returnValue=false;
|
1364
1365
|
}
|
1366
|
+
$.fn.findExclude = function( selector, mask, result )
|
1367
|
+
{
|
1368
|
+
result = typeof result !== 'undefined' ? result : new jQuery();
|
1369
|
+
this.children().each( function(){
|
1370
|
+
thisObject = jQuery( this );
|
1371
|
+
if( thisObject.is( selector ) )
|
1372
|
+
result.push( this );
|
1373
|
+
if( !thisObject.is( mask ) )
|
1374
|
+
thisObject.findExclude( selector, mask, result );
|
1375
|
+
});
|
1376
|
+
return result;
|
1377
|
+
}
|
1365
1378
|
$(document).ready(function(){
|
1366
1379
|
if(typeof window.any_time_manager === "undefined" && typeof window.loading_any_time_manager === "undefined"){
|
1367
1380
|
window.loading_any_time_manager = true;
|
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.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 4.0.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '5'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 4.0.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '5'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
171
|
+
rubygems_version: 2.5.1
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Tools for building a browser UI. Get the good stuff.
|