jquery-rails 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jquery-rails might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1600db8b878446c499e08563ee1da26606ff6276
4
- data.tar.gz: 55c7dde6ecb3794cc82fc459e3ea9225c7d3daa5
3
+ metadata.gz: 98bf989826e397d74ec16b1a4a7c4abec2abf9aa
4
+ data.tar.gz: f49b1a849a7fa680e2c3ccb51033fb5f8ac2a84e
5
5
  SHA512:
6
- metadata.gz: b75b2ec02b1d1aa63fb82344542d3c5de4da1557353b393a3d31a417bf70bf2a25eade3b1a20364712cdd863994241ddfe1e7f9e506a3decbb41bc78c158f044
7
- data.tar.gz: 9c9c2a90d36aaa6e025859b2ab0cabd4cba00f1d1fc4ccbedb5b6a29648d90dc57896a95fd0b8d035f3dd064153355df97eba0f0f259b3757cad1e00d84dd8a2
6
+ metadata.gz: 27f7d0e1dc0263585ed78f0665422d3d855c6e7367e9bc7c1db7b09fb01eb834402faad34baa7c2b02f3b536cc61a91012b239a29d21f8bc1c045db0eeec4d54
7
+ data.tar.gz: 1913187a31b4be7a2e92122850ea84e124688282a6ea370022767e4394f5759360cf08eedebb4f633c9cb59aa1c842b0aaaf5f5eeeb8bd3c839a02345001c98c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## 3.1.1 (23 June 2013)
1
+ ## 3.1.2 (1 September 2014)
2
+
3
+ - Updated to jquery-ujs 1.0.1
4
+
5
+ ## 3.1.1 (23 June 2014)
2
6
 
3
7
  - Updated to jQuery 1.11.1
4
8
  - Updated to jquery-ujs 1.0.0
data/README.md CHANGED
@@ -4,7 +4,7 @@ jQuery! For Rails! So great.
4
4
 
5
5
  This gem provides:
6
6
 
7
- * jQuery 1.11.0
7
+ * jQuery 1.11.1
8
8
  * the jQuery UJS adapter
9
9
  * assert_select_jquery to test jQuery responses in Ruby tests
10
10
 
data/VERSIONS.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Gem | jQuery | jQuery UJS | jQuery UI |
4
4
  |--------|--------|------------| ----------|
5
+ | 3.1.2 | 1.11.1 | 1.0.1 | - |
5
6
  | 3.1.1 | 1.11.1 | 1.0.0 | - |
6
7
  | 3.1.0 | 1.11.0 | - | - |
7
8
  | 3.0.5 | 1.11.0 | - | - |
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Rails
3
- VERSION = "3.1.1"
3
+ VERSION = "3.1.2"
4
4
  JQUERY_VERSION = "1.11.1"
5
- JQUERY_UJS_VERSION = "1.0.0"
5
+ JQUERY_UJS_VERSION = "1.0.1"
6
6
  end
7
7
  end
@@ -4,7 +4,7 @@
4
4
  * Unobtrusive scripting adapter for jQuery
5
5
  * https://github.com/rails/jquery-ujs
6
6
  *
7
- * Requires jQuery 1.7.0 or later.
7
+ * Requires jQuery 1.8.0 or later.
8
8
  *
9
9
  * Released under the MIT license
10
10
  *
@@ -25,7 +25,7 @@
25
25
  linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote], a[data-disable-with], a[data-disable]',
26
26
 
27
27
  // Button elements bound by jquery-ujs
28
- buttonClickSelector: 'button[data-remote], button[data-confirm]',
28
+ buttonClickSelector: 'button[data-remote]:not(form button), button[data-confirm]:not(form button)',
29
29
 
30
30
  // Select elements bound by jquery-ujs
31
31
  inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',
@@ -34,7 +34,7 @@
34
34
  formSubmitSelector: 'form',
35
35
 
36
36
  // Form input elements bound by jquery-ujs
37
- formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])',
37
+ formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',
38
38
 
39
39
  // Form input elements disabled during form submission
40
40
  disableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',
@@ -356,6 +356,7 @@
356
356
 
357
357
  $document.delegate(rails.buttonClickSelector, 'click.rails', function(e) {
358
358
  var button = $(this);
359
+
359
360
  if (!rails.allowAction(button)) return rails.stopEverything(e);
360
361
 
361
362
  if (button.is(rails.buttonDisableSelector)) rails.disableFormElement(button);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties