jquery-rails 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## 1.0.5 (28 May 2011)
1
+ ## 1.0.6 (21 May 2011)
2
+
3
+ - Updated to latest jquery-ujs with `data-params` support
4
+
5
+ ## 1.0.5 (17 May 2011)
2
6
 
3
7
  - Updated to latest jquery-ujs
4
8
  - Remove old rails.js in Rails 3.0 generator
@@ -5,7 +5,7 @@ module Jquery
5
5
  class InstallGenerator < ::Rails::Generators::Base
6
6
  @@jquery_version = "1.6.1"
7
7
  @@jquery_ui_version = "1.8.12"
8
- @@jquery_ujs_version = "a634e7507d45249731b79a801034097e330d27d1"
8
+ @@jquery_ujs_version = "dad6982dc592686677e6845e681233c40d2ead27"
9
9
 
10
10
  desc "This generator installs jQuery #{@@jquery_version}, jQuery-ujs, and (optionally) jQuery UI #{@@jquery_ui_version}"
11
11
  class_option :ui, :type => :boolean, :default => false, :desc => "Include jQueryUI"
@@ -1,5 +1,5 @@
1
1
  module Jquery
2
2
  module Rails
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
@@ -112,8 +112,8 @@
112
112
  } else {
113
113
  method = element.data('method');
114
114
  url = element.attr('href');
115
- data = null;
116
- }
115
+ data = element.data('params') || null;
116
+ }
117
117
 
118
118
  rails.ajax({
119
119
  url: url, type: method || 'GET', data: data, dataType: dataType,
@@ -181,17 +181,16 @@
181
181
  });
182
182
  },
183
183
 
184
- /*
185
- For 'data-confirm' attribute:
186
- - fires `confirm` event
187
- - shows the confirmation dialog
188
- - fires the `confirm:complete` event
184
+ /* For 'data-confirm' attribute:
185
+ - Fires `confirm` event
186
+ - Shows the confirmation dialog
187
+ - Fires the `confirm:complete` event
189
188
 
190
- Returns `true` if no function stops the chain and user chose yes; `false` otherwise.
191
- Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog.
192
- Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function
193
- return false.
194
- */
189
+ Returns `true` if no function stops the chain and user chose yes; `false` otherwise.
190
+ Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog.
191
+ Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function
192
+ return false. The `confirm:complete` event is fired whether or not the user answered true or false to the dialog.
193
+ */
195
194
  allowAction: function(element) {
196
195
  var message = element.data('confirm'),
197
196
  answer = false, callback;
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 5
9
- version: 1.0.5
8
+ - 6
9
+ version: 1.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Andr\xC3\xA9 Arko"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-05-17 00:00:00 -04:00
17
+ date: 2011-05-21 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency