window_rails 1.0.0 → 1.0.2

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: b40da2d75bc405b6b1bb2217538d8043207f9542
4
- data.tar.gz: ec24e04aad5bf6c8a17d7817cf47784ed7f7a077
3
+ metadata.gz: 2f331da79c09a9e873bd6ea2c1eb4846c093122b
4
+ data.tar.gz: ed0172253b5f8a9a862d1d45ac58cf56602dfa36
5
5
  SHA512:
6
- metadata.gz: 7d409b75763fdc7f3f8ac4c945da12dfbc64b2e46777da12166ab3a4245acd10d9403d65b99eec8737a0039df224cb0f7106be68631c634de432cc4dbf5ffc5f
7
- data.tar.gz: e969a15ccf052870294a02dee57a8b43000d069d168e153dfbb2304cf807e9932c1283cb0aa67d74c635bb0c7efc5e2b7a13065b8651f84acc58fc0177f67564
6
+ metadata.gz: d08753fe8c4eb51ca41e491a53f94bbc04d7569558ae2a4e7b6241758b4fd77ef27360166cd97efb31745f41aa56bc9882f0f99fde835709de7831c8c53c33b0
7
+ data.tar.gz: ba14800eb47c170edee74a0610fa6724e182b8d8779e27ae2db1c969ab66f55cf2da8e12abe9288db56bf6527605d60db37d60fab342adb3fe1928e182ce8136
data/CHANGELOG.md CHANGED
@@ -1,71 +1,74 @@
1
- ## v1.0.0
1
+ # v1.0.2
2
+ * Support custom callback on confirmation accept
3
+
4
+ # v1.0.0
2
5
  * Migrate to bootstrap based modals
3
6
  * Complete API refactor
4
7
 
5
- ## v0.2.12
8
+ # v0.2.12
6
9
  * Fixes for proper loading in Rails 3.2
7
10
 
8
- ## v0.2.11
11
+ # v0.2.11
9
12
  * Provides windowing methods to ActionView::Base for JS templates
10
13
  * Removes deprecated rake tasks
11
14
 
12
- ## v0.2.10
15
+ # v0.2.10
13
16
  * Fixes close window bug
14
17
 
15
- ## v0.2.9
18
+ # v0.2.9
16
19
  * Let #window return raw string when passed :raw argument
17
20
  * Check for window before attempting to close a window
18
21
 
19
- ## v0.2.8
22
+ # v0.2.8
20
23
  * Request content as HTML when loading window
21
24
 
22
- ## v0.2.7
25
+ # v0.2.7
23
26
  * Remove content holder element after window has been closed to prevent orphaned content
24
27
 
25
- ## v0.2.6
28
+ # v0.2.6
26
29
  * Fixes for #link_to_window
27
30
 
28
- ## v0.2.5
31
+ # v0.2.5
29
32
  * Better height/width determination for resize methods
30
33
 
31
- ## v0.2.4
34
+ # v0.2.4
32
35
  * Add #resize_to_fit, #auto_resize and #center_window methods
33
36
 
34
- ## v0.2.3
37
+ # v0.2.3
35
38
  * Add config directory to gemspec
36
39
  * Provide Rails 3 compatible routing
37
40
 
38
- ## v0.2.2
41
+ # v0.2.2
39
42
  * Fix bug in #close_window
40
43
 
41
- ## v0.2.1
44
+ # v0.2.1
42
45
  * Enable #observe_dynamically_loaded_field for compatibility (outputs prototype)
43
46
 
44
- ## v0.2.0
47
+ # v0.2.0
45
48
  * Rebuild off jquery-ui dialogs
46
49
 
47
- ## v0.1.4
50
+ # v0.1.4
48
51
  * Fix to #update_window method to accept content not key
49
52
 
50
- ## v0.1.3
53
+ # v0.1.3
51
54
  * Rails init inclusion within gem package
52
55
 
53
- ## v0.1.2
56
+ # v0.1.2
54
57
  * Add rake task for install
55
58
  * Pull window content from reference to prevent writing content multiple times
56
59
 
57
- ## v0.1.1
60
+ # v0.1.1
58
61
  * Proper rails loading when included via gem
59
62
  * Fix for window jumping when constraints applied
60
63
  * Fix for #observe_dynamically_loaded_field when using a function instead of callback
61
64
  * Make IFrame usage optional
62
65
 
63
- ## v0.1.0
66
+ # v0.1.0
64
67
  * Lots of cleanup
65
68
  * Better builders available
66
69
  * #observe_dynamically_loaded_field to watch things that have been inserted into the DOM
67
70
  * Better window handling
68
71
  * Default class set to alphacube
69
72
 
70
- ## v0.0.1
73
+ # v0.0.1
71
74
  * Initial release
@@ -82,7 +82,7 @@ window_rails.open_window = function(name, args){
82
82
  }
83
83
  }
84
84
 
85
- backdrop = args.backdrop == undefined ? true : args.backdrop;
85
+ backdrop = args && args.backdrop == undefined ? true : args.backdrop;
86
86
  if(backdrop && args.static_backdrop){
87
87
  backdrop = 'static';
88
88
  }
@@ -204,8 +204,10 @@ window_rails.confirm.execute = function(){
204
204
  auto_close: window_rails.config('confirm_info_auto_close', 5)
205
205
  });
206
206
  });
207
- } else {
207
+ } else if(args.url) {
208
208
  document.location = args.url;
209
+ } else if(args.callback) {
210
+ window[args.callback]();
209
211
  }
210
212
  }
211
213
 
@@ -421,7 +423,8 @@ window_rails.hooks.open_window = function(){
421
423
  url: $(this).attr('window-rails-url'),
422
424
  progress: $(this).attr('window-rails-progress'),
423
425
  complete: $(this).attr('window-rails-complete'),
424
- error: $(this).attr('window-rails-error')
426
+ error: $(this).attr('window-rails-error'),
427
+ callback: $(this).attr('window-rails-callback')
425
428
  });
426
429
  }
427
430
 
@@ -1,4 +1,4 @@
1
1
  module WindowRails
2
2
  # Current library version
3
- VERSION = Gem::Version.new('1.0.0')
3
+ VERSION = Gem::Version.new('1.0.2')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: window_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-13 00:00:00.000000000 Z
11
+ date: 2015-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  requirements: []
81
81
  rubyforge_project:
82
- rubygems_version: 2.2.2
82
+ rubygems_version: 2.4.8
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Windows for Rails