hooch 0.14.0 → 0.14.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 +13 -5
- data/lib/hooch/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f305de98c96b455cd167b93d2909ab1a8994b37
|
4
|
+
data.tar.gz: fffeb8ed6496e5f74c1a96b7129304a4c4acfbae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d026c3123f71e1b73f440ae88d56df67dfa4465e93da9c4ae842455cc6407119d4939fbbb78bab3df75281431ba282f8e839a08dc8ae6feb6fe4d815997ba0f
|
7
|
+
data.tar.gz: ffcdd7c23fa0c6e3f82af78c67a0fbe2f952ed76dd7d26a83c53472edc24785a8176004305f6e74cc833196b319a4532b18086ad5501eed9d2db383e18872214
|
@@ -397,7 +397,7 @@ var initHooch = function(){
|
|
397
397
|
revealer.reveal();
|
398
398
|
},
|
399
399
|
reveal: function(){
|
400
|
-
var sanitized_value = this
|
400
|
+
var sanitized_value = this.getSanitizedValue();
|
401
401
|
if('true' == sanitized_value){ sanitized_value = true }
|
402
402
|
if('false' == sanitized_value){ sanitized_value = false }
|
403
403
|
this.$children = [];
|
@@ -419,10 +419,18 @@ var initHooch = function(){
|
|
419
419
|
revealer.$children.push($(this));
|
420
420
|
}
|
421
421
|
}
|
422
|
-
})
|
422
|
+
});
|
423
423
|
this.hideChildren();
|
424
424
|
this.revealChosenOnes();
|
425
425
|
},
|
426
|
+
getSanitizedValue: function(){
|
427
|
+
if(this.$revealer[0].nodeName.toLowerCase() == "select"){
|
428
|
+
var sanitized_value = this.$revealer.val();
|
429
|
+
} else if(this.$revealer[0].nodeName.toLowerCase() == "input" && this.$revealer.attr('type') == "checkbox"){
|
430
|
+
var sanitized_value = this.$revealer.is(':checked');
|
431
|
+
}
|
432
|
+
return sanitized_value;
|
433
|
+
},
|
426
434
|
hideChildren: function(){
|
427
435
|
this.$all_children.hide();
|
428
436
|
},
|
@@ -589,11 +597,11 @@ var initHooch = function(){
|
|
589
597
|
this.setNewParams()
|
590
598
|
},
|
591
599
|
setNewParams: function(){
|
592
|
-
history['replaceState'](this.state, null, this.toUrl());
|
600
|
+
history['replaceState'](this.state, null, this.toUrl());
|
593
601
|
},
|
594
602
|
replacePath: function(new_path){
|
595
603
|
this.addPath(new_path)
|
596
|
-
history['replaceState']({}, null, this.newPath());
|
604
|
+
history['replaceState']({}, null, this.newPath());
|
597
605
|
}
|
598
606
|
}),
|
599
607
|
HistoryPusher: Class.extend({
|
@@ -653,7 +661,7 @@ var initHooch = function(){
|
|
653
661
|
var history_pusher = this
|
654
662
|
history_pusher.current_state = new hooch.IhHistoryState(history.state)
|
655
663
|
$.each(this.new_params,function(new_key,new_value){
|
656
|
-
history_pusher.current_state.addState(new_key,new_value)
|
664
|
+
history_pusher.current_state.addState(new_key,new_value)
|
657
665
|
})
|
658
666
|
history_pusher.current_state.setNewParams()
|
659
667
|
}
|
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.14.
|
4
|
+
version: 0.14.1
|
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-10-
|
11
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -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.5.1
|
171
|
+
rubygems_version: 2.4.5.1
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Tools for building a browser UI. Get the good stuff.
|