yano-jquery-rails 2.1.2 → 2.1.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: 6c7304e8167c05d9c7274e6d2a37f9cc38df02b3
4
- data.tar.gz: 77b55ab529180611b1ddb9cc3d1e234179e87fbc
3
+ metadata.gz: 61abfde9c6d4e5b519af96767f7b751b36302dde
4
+ data.tar.gz: 1be8bf8451ecef021339524e424e2bce3f3d9796
5
5
  SHA512:
6
- metadata.gz: 365fb1dfc7a6bf385d3d98b5ad404083d964b8bab63db25cc215ab4bded98cb72b544481a4cedd5868be694973d9ab6c1a9d0f2c0418fd3771495ac5d69795d3
7
- data.tar.gz: f0750f4df5f0def82eb8dde86968ec2f150b1057cf46cd37efc70e5520048f97ed7d8df0474416ac63dbb84a5abd520524b82a0ca5fb1384b962ce463683ebeb
6
+ metadata.gz: a6de7af457f3b96120a4d01c66d9ac443573d273d21b01b03705e0b0a556491de8927656147e2d618075fc840d15e1fd35e9f1d913796b492a6e471e63f8bb5e
7
+ data.tar.gz: 54a87f644746a162734f57e860f35eb36726739941d06f7e1d15e44056b0670bdf961ab3d9ed9c14b50d145a9a13d24e74c9fbc1ac82c86a982c3fa649704b26
@@ -1,12 +1,12 @@
1
1
  module Yano
2
2
  module Jquery
3
3
  module Rails
4
- VERSION = "2.1.2"
4
+ VERSION = "2.1.3"
5
5
  JQUERY_VERSION = "1.12.4"
6
6
  JQUERY_2_VERSION = "2.2.4"
7
7
  JQUERY_3_VERSION = "3.1.0"
8
8
  JQUERY_UI_VERSION = "1.12.0"
9
- JQUERY_UJS_VERSION = "1.2.1"
9
+ JQUERY_UJS_VERSION = "1.2.2"
10
10
  end
11
11
  end
12
12
  end
@@ -48,7 +48,7 @@
48
48
  requiredInputSelector: 'input[name][required]:not([disabled]), textarea[name][required]:not([disabled])',
49
49
 
50
50
  // Form file input elements
51
- fileInputSelector: 'input[type=file]:not([disabled])',
51
+ fileInputSelector: 'input[name][type=file]:not([disabled])',
52
52
 
53
53
  // Link onClick disable selector with possible reenable after remote submission
54
54
  linkDisableSelector: 'a[data-disable-with], a[data-disable]',
@@ -416,15 +416,15 @@
416
416
  });
417
417
  });
418
418
 
419
- $document.delegate(rails.linkDisableSelector, 'ajax:complete', function() {
419
+ $document.on('ajax:complete', rails.linkDisableSelector, function() {
420
420
  rails.enableElement($(this));
421
421
  });
422
422
 
423
- $document.delegate(rails.buttonDisableSelector, 'ajax:complete', function() {
423
+ $document.on('ajax:complete', rails.buttonDisableSelector, function() {
424
424
  rails.enableFormElement($(this));
425
425
  });
426
426
 
427
- $document.delegate(rails.linkClickSelector, 'click.rails', function(e) {
427
+ $document.on('click.rails', rails.linkClickSelector, function(e) {
428
428
  var link = $(this), method = link.data('method'), data = link.data('params'), metaClick = e.metaKey || e.ctrlKey;
429
429
  if (!rails.allowAction(link)) return rails.stopEverything(e);
430
430
 
@@ -448,7 +448,7 @@
448
448
  }
449
449
  });
450
450
 
451
- $document.delegate(rails.buttonClickSelector, 'click.rails', function(e) {
451
+ $document.on('click.rails', rails.buttonClickSelector, function(e) {
452
452
  var button = $(this);
453
453
 
454
454
  if (!rails.allowAction(button) || !rails.isRemote(button)) return rails.stopEverything(e);
@@ -465,7 +465,7 @@
465
465
  return false;
466
466
  });
467
467
 
468
- $document.delegate(rails.inputChangeSelector, 'change.rails', function(e) {
468
+ $document.on('change.rails', rails.inputChangeSelector, function(e) {
469
469
  var link = $(this);
470
470
  if (!rails.allowAction(link) || !rails.isRemote(link)) return rails.stopEverything(e);
471
471
 
@@ -473,7 +473,7 @@
473
473
  return false;
474
474
  });
475
475
 
476
- $document.delegate(rails.formSubmitSelector, 'submit.rails', function(e) {
476
+ $document.on('submit.rails', rails.formSubmitSelector, function(e) {
477
477
  var form = $(this),
478
478
  remote = rails.isRemote(form),
479
479
  blankRequiredInputs,
@@ -518,7 +518,7 @@
518
518
  }
519
519
  });
520
520
 
521
- $document.delegate(rails.formInputClickSelector, 'click.rails', function(event) {
521
+ $document.on('click.rails', rails.formInputClickSelector, function(event) {
522
522
  var button = $(this);
523
523
 
524
524
  if (!rails.allowAction(button)) return rails.stopEverything(event);
@@ -539,11 +539,11 @@
539
539
  form.data('ujs:submit-button-formmethod', button.attr('formmethod'));
540
540
  });
541
541
 
542
- $document.delegate(rails.formSubmitSelector, 'ajax:send.rails', function(event) {
542
+ $document.on('ajax:send.rails', rails.formSubmitSelector, function(event) {
543
543
  if (this === event.target) rails.disableFormElements($(this));
544
544
  });
545
545
 
546
- $document.delegate(rails.formSubmitSelector, 'ajax:complete.rails', function(event) {
546
+ $document.on('ajax:complete.rails', rails.formSubmitSelector, function(event) {
547
547
  if (this === event.target) rails.enableFormElements($(this));
548
548
  });
549
549
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yano-jquery-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan C. Calixto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties