hobo_jquery 2.0.0.pre1 → 2.0.0.pre2
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.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.pre2
|
data/hobo_jquery.gemspec
CHANGED
@@ -18,6 +18,6 @@ spec = Gem::Specification.new do |s|
|
|
18
18
|
s.require_paths = ["lib", "vendor", "taglibs"]
|
19
19
|
|
20
20
|
s.add_runtime_dependency('jquery-rails', ["~> 2.0"])
|
21
|
-
s.add_runtime_dependency('
|
21
|
+
s.add_runtime_dependency('hobo_rapid', ["= #{version}"])
|
22
22
|
|
23
23
|
end
|
@@ -22,8 +22,8 @@
|
|
22
22
|
The spinner is returned.
|
23
23
|
*/
|
24
24
|
init: function(options, default_message) {
|
25
|
-
var original=$("#ajax-progress");
|
26
|
-
if (original.length==0) return
|
25
|
+
var original=$("#ajax-progress-wrapper .ajax-progress:first");
|
26
|
+
if (original.length==0) return $();
|
27
27
|
|
28
28
|
options = $.extend({}, defaultOptions.call(this), options);
|
29
29
|
if(options['no-spinner']) return $();
|
@@ -56,7 +56,8 @@
|
|
56
56
|
default_options['no-spinner'] = page_options['no-spinner'];
|
57
57
|
default_options['spinner-options'] = page_options['spinner-options'] || {
|
58
58
|
my: "right bottom",
|
59
|
-
at: "left top"
|
59
|
+
at: "left top",
|
60
|
+
collision: "none"
|
60
61
|
};
|
61
62
|
default_options['message'] = page_options['message'];
|
62
63
|
return default_options;
|
@@ -266,6 +266,10 @@
|
|
266
266
|
if(o.function) result.data["render["+i+"][function]"] = o['function'];
|
267
267
|
}
|
268
268
|
|
269
|
+
if(ids.length==0) {
|
270
|
+
result.data.render = 'none'
|
271
|
+
}
|
272
|
+
|
269
273
|
return result;
|
270
274
|
},
|
271
275
|
|
@@ -280,7 +284,7 @@
|
|
280
284
|
if(o.attrs.success) success_dfd.done(methods.createFunction.call(that, o.attrs.success));
|
281
285
|
if(o.extra_callbacks.success) success_dfd.done(methods.createFunction.call(that, o.extra_callbacks.success));
|
282
286
|
success_dfd.done(function() {
|
283
|
-
if(o.attrs
|
287
|
+
if(o.attrs['reset-form']) that[0].reset();
|
284
288
|
// if we've been removed, all event handlers on us
|
285
289
|
// have already been removed and we don't bubble
|
286
290
|
// up, so triggering on that won't do any good
|
@@ -305,7 +309,7 @@
|
|
305
309
|
if(that.parents("body").length==0) $(document).trigger('rapid:ajax:complete', [that]);
|
306
310
|
else that.trigger('rapid:ajax:complete', [that]);
|
307
311
|
spinner.hjq_spinner('remove');
|
308
|
-
if(o.attrs
|
312
|
+
if(o.attrs['refocus-form']) that.find(":input[type!=hidden]:first").focus();
|
309
313
|
});
|
310
314
|
result.complete = complete_dfd.resolve;
|
311
315
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo_jquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.pre2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jquery-rails
|
@@ -28,13 +28,13 @@ dependencies:
|
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '2.0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: hobo_rapid
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
35
|
- - '='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.0.0.
|
37
|
+
version: 2.0.0.pre2
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.0.0.
|
45
|
+
version: 2.0.0.pre2
|
46
46
|
description: JQuery support for Hobo
|
47
47
|
email: bryan@larsen.st
|
48
48
|
executables: []
|