hooch 0.10.2 → 0.10.3

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: c9839a67c9d3d6ba4e451d400bc0e86e109cde5b
4
- data.tar.gz: ed6a60481634b548a0a6232450e5e49191976901
3
+ metadata.gz: 2f3fc38326b5fc5b55a3c22a3cb62a49a05761a5
4
+ data.tar.gz: 062309fcae4c4be6f58b5da595f82688bd257805
5
5
  SHA512:
6
- metadata.gz: 820468017cd71e57d5d5720b63ab252c00ee960a304e3f5a7a14c521a38ec6801ef0e51e3fe8c883df3c246c75a359a4d8e3272b20db9aada9d09c638fa83ef4
7
- data.tar.gz: 5eecbda61955d9897428be773d2b380caee4d661ae99f42ec545df9f6bb714013e9d26b0b4974e42549f1988f2cd469367ad39af8a00e1b565e03c95b46393dd
6
+ metadata.gz: 0b5c01b39a30833141fb096ea248471de81c8589f7bb49779fc6ceea49aa65b541de722a0ca73575289bc9d3b0e2645a8414dd7136010aca2e9304dbae35f774
7
+ data.tar.gz: aaa0b4c7be5f5a592c0833366f56d6079247e4143fc17a79f5db32a8773b1e316f3fc3410e57966b11fd6af920b8250cd28ad29add04594359d26a2dae2a57f9
@@ -152,7 +152,7 @@ var initHooch = function(){
152
152
  this.$modal_content_wrapper = this.$modal_element.find('#hooch-content')
153
153
  var content_height = this.modal_height - (this.padding*2)
154
154
  this.$modal_content_wrapper.css({'overflow-y': 'scroll', 'max-height': content_height, position: 'relative', float: 'left'})
155
- this.$modal_content_wrapper.html(this.$modal_content)
155
+ this.$modal_content_wrapper.html(this.$modal_content)
156
156
  },
157
157
  getDismisser: function(){
158
158
  this.$dismisser = this.$modal_mask.find('#hooch-dismiss')
@@ -193,10 +193,10 @@ var initHooch = function(){
193
193
  if (window.removeEventListener){
194
194
  window.removeEventListener('DOMMouseScroll', hooch.preventDefault, false);
195
195
  }
196
- window.onmousewheel = document.onmousewheel = null;
197
- window.onwheel = null;
198
- window.ontouchmove = null;
199
- document.onkeydown = null;
196
+ window.onmousewheel = document.onmousewheel = null;
197
+ window.onwheel = null;
198
+ window.ontouchmove = null;
199
+ document.onkeydown = null;
200
200
  }
201
201
  }),
202
202
  Expandable: Class.extend({
@@ -1282,7 +1282,7 @@ var initHooch = function(){
1282
1282
  e = e || window.event;
1283
1283
  if (e.preventDefault)
1284
1284
  e.preventDefault();
1285
- e.returnValue = false;
1285
+ e.returnValue = false;
1286
1286
  },
1287
1287
  preventDefaultForScrollKeys: function(e) {
1288
1288
  if (hooch.scroll_keys[e.keyCode]) {
@@ -1360,11 +1360,21 @@ var initHooch = function(){
1360
1360
  }
1361
1361
  });
1362
1362
  hooch.SelectActionChanger = hooch.FakeSelect.extend({
1363
+ init: function($fake_select){
1364
+ this.auto_submit = $fake_select.data('auto-submit');
1365
+ this._super($fake_select);
1366
+ },
1363
1367
  select: function(fake_option){
1364
1368
  var form = this.select_display.parents('form:first');
1365
1369
  form.attr('action', fake_option.select_value);
1366
1370
  this.select_display.html(fake_option.select_name);
1367
1371
  this.select_display.trigger('click');
1372
+ if (this.auto_submit){
1373
+ this.submitForm();
1374
+ }
1375
+ },
1376
+ submitForm: function(form){
1377
+ form.submit();
1368
1378
  }
1369
1379
  });
1370
1380
  hooch.FormFieldRevealer = hooch.Revealer.extend({
@@ -1478,7 +1488,7 @@ var initHooch = function(){
1478
1488
  result = typeof result !== 'undefined' ? result : new jQuery();
1479
1489
  this.children().each( function(){
1480
1490
  thisObject = jQuery( this );
1481
- if( thisObject.is( selector ) )
1491
+ if( thisObject.is( selector ) )
1482
1492
  result.push( this );
1483
1493
  if( !thisObject.is( mask ) )
1484
1494
  thisObject.findExclude( selector, mask, result );
data/lib/hooch/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.10.2"
2
+ VERSION = "0.10.3"
3
3
  end
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.10.2
4
+ version: 0.10.3
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-07-14 00:00:00.000000000 Z
11
+ date: 2016-08-02 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.