Commit 250d42000ccc2194705c2b5ea8cbe6d936a20e54
1 parent
2c2f7890
Exists in
master
and in
29 other branches
ActionItem642: no more problems with lightbox pop-up clicks before page load
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2459 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
app/helpers/lightbox_helper.rb
@@ -26,7 +26,10 @@ module LightboxHelper | @@ -26,7 +26,10 @@ module LightboxHelper | ||
26 | def lightbox_options(options, lightbox_type = 'lbOn') | 26 | def lightbox_options(options, lightbox_type = 'lbOn') |
27 | the_class = lightbox_type | 27 | the_class = lightbox_type |
28 | the_class << " #{options[:class]}" if options.has_key?(:class) | 28 | the_class << " #{options[:class]}" if options.has_key?(:class) |
29 | - options.merge(:class => the_class) | 29 | + options.merge( |
30 | + :class => the_class, | ||
31 | + :onclick => 'alert("%s"); return false' % _('Please, try again when the page loading completes.') | ||
32 | + ) | ||
30 | end | 33 | end |
31 | 34 | ||
32 | def lightbox? | 35 | def lightbox? |