bootstrap_helperized 0.0.7 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,11 +3,12 @@ module BootstrapHelperized
|
|
3
3
|
module Helper
|
4
4
|
|
5
5
|
def standard_modal_box(options = {}, &block)
|
6
|
-
css_id
|
7
|
-
box_title
|
6
|
+
css_id = options[:id]
|
7
|
+
box_title = options[:title]
|
8
|
+
@show_fade = options[:show_fade] || false
|
8
9
|
|
9
10
|
modal_options = { :id => css_id,
|
10
|
-
:class =>
|
11
|
+
:class => class_string,
|
11
12
|
:role => 'dialog',
|
12
13
|
:tabindex => '-1' }
|
13
14
|
|
@@ -32,6 +33,10 @@ module BootstrapHelperized
|
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
36
|
+
|
37
|
+
def class_string
|
38
|
+
'modal hide' + (@show_fade ? ' fade' : '')
|
39
|
+
end
|
35
40
|
|
36
41
|
end
|
37
42
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_helperized
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
prerelease:
|
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: 2013-
|
12
|
+
date: 2013-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Bootstrap helper methods
|
15
15
|
email:
|