diff --git a/app/helpers/lightbox_helper.rb b/app/helpers/lightbox_helper.rb index ea30104..38ce04e 100644 --- a/app/helpers/lightbox_helper.rb +++ b/app/helpers/lightbox_helper.rb @@ -26,7 +26,10 @@ module LightboxHelper def lightbox_options(options, lightbox_type = 'lbOn') the_class = lightbox_type the_class << " #{options[:class]}" if options.has_key?(:class) - options.merge(:class => the_class) + options.merge( + :class => the_class, + :onclick => 'alert("%s"); return false' % _('Please, try again when the page loading completes.') + ) end def lightbox? -- libgit2 0.21.2