window_rails 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/config/routes.rb +9 -0
- data/lib/window_rails/version.rb +1 -1
- data/lib/window_rails/window_rails_generators.rb +3 -1
- metadata +6 -5
data/CHANGELOG.rdoc
CHANGED
data/config/routes.rb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
if(Rails.version.split('.').first.to_i < 3)
|
2
|
+
ActionController::Routing::Routes.draw do |map|
|
3
|
+
map.open_window 'window_rails/open_window', :controller => :window_rails, :action => :open_window
|
4
|
+
end
|
5
|
+
else
|
6
|
+
Rails.application.routes.draw do
|
7
|
+
match 'window_rails/open_window' => 'window_rails#open_window', :as => :open_window
|
8
|
+
end
|
9
|
+
end
|
data/lib/window_rails/version.rb
CHANGED
@@ -185,6 +185,9 @@ module WindowRailsGenerators
|
|
185
185
|
# options:: Options to be passed onto window
|
186
186
|
# Creates a new window. Generally this should not be called,
|
187
187
|
# rather #open_window should be used
|
188
|
+
# TODO: The below line causes an error in IE. Fix up to be compatible
|
189
|
+
# so we aren't storing worthless junk:
|
190
|
+
# window.window_rails_windows_array.splice(window.window_rails_windows_array.indexOf('#{win}'), 1);
|
188
191
|
def create_window(key, win, options)
|
189
192
|
options[:auto_open] ||= false
|
190
193
|
options[:close] = "function(event,ui){
|
@@ -195,7 +198,6 @@ module WindowRailsGenerators
|
|
195
198
|
}
|
196
199
|
jQuery('##{win}').dialog('destroy');
|
197
200
|
window.window_rails_windows['#{win}'] = null;
|
198
|
-
window.window_rails_windows_array.splice(window.window_rails_windows_array.indexOf('#{win}'), 1);
|
199
201
|
jQuery('##{win}').remove();
|
200
202
|
}"
|
201
203
|
unless(win.is_a?(String))
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: window_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Roberts
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-10-21 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- lib/window_rails/window_rails_generators.rb
|
71
71
|
- lib/window_rails/version.rb
|
72
72
|
- rails/init.rb
|
73
|
+
- config/routes.rb
|
73
74
|
has_rdoc: true
|
74
75
|
homepage: http://github.com/chrisroberts/window_rails
|
75
76
|
licenses: []
|
@@ -100,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
101
|
requirements: []
|
101
102
|
|
102
103
|
rubyforge_project:
|
103
|
-
rubygems_version: 1.
|
104
|
+
rubygems_version: 1.4.2
|
104
105
|
signing_key:
|
105
106
|
specification_version: 3
|
106
107
|
summary: Windows for Rails
|