splendeo-lightbox2_helpers 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lightbox2_helpers/form_helpers.rb +6 -2
- metadata +1 -1
@@ -37,13 +37,17 @@ module Lightbox2Helpers::FormHelpers
|
|
37
37
|
html_options = args.third || {}
|
38
38
|
end
|
39
39
|
|
40
|
-
if options.include? :group
|
40
|
+
if options.is_a? Hash and options.include? :group
|
41
41
|
html_options[:rel] = "lightbox[#{options[:group]}]"
|
42
42
|
options.delete :group
|
43
|
+
elsif html_options.is_a? Hash and html_options.include? :group
|
44
|
+
html_options[:rel] = "lightbox[#{html_options[:group]}]"
|
45
|
+
html_options.delete :group
|
43
46
|
else
|
44
47
|
html_options[:rel] = "lightbox"
|
45
48
|
end
|
46
|
-
|
49
|
+
|
50
|
+
if options.is_a? Hash and options.include? :title
|
47
51
|
html_options[:title] = options[:title]
|
48
52
|
options.delete :title
|
49
53
|
end
|