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
@@ -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 = "
|
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"
|
data/lib/jquery-rails/version.rb
CHANGED
@@ -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
|
-
|
186
|
-
|
187
|
-
|
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
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
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
|
-
-
|
9
|
-
version: 1.0.
|
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
|
+
date: 2011-05-21 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|