From 250d42000ccc2194705c2b5ea8cbe6d936a20e54 Mon Sep 17 00:00:00 2001 From: AurelioAHeckert Date: Thu, 4 Sep 2008 17:58:16 +0000 Subject: [PATCH] ActionItem642: no more problems with lightbox pop-up clicks before page load --- app/helpers/lightbox_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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