diff options
| author | hukl <contact@smyck.org> | 2009-10-08 22:24:51 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-08 22:24:51 +0200 |
| commit | 2fd33c36428ae7684badc43dbe2142152f058b4e (patch) | |
| tree | c1025efc497973e268baa1b531120e726478d992 /public/javascripts/public.js | |
| parent | 0db008d0bfb0803e5b000fcf08058e7d01f588eb (diff) | |
enabled shadowbox for headline images on public pages. if js is disabled the regular html version is rendered
Diffstat (limited to 'public/javascripts/public.js')
| -rw-r--r-- | public/javascripts/public.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/public/javascripts/public.js b/public/javascripts/public.js index f4619e7..0919360 100644 --- a/public/javascripts/public.js +++ b/public/javascripts/public.js | |||
| @@ -1,7 +1,23 @@ | |||
| 1 | Shadowbox.init({ | ||
| 2 | skipSetup : true | ||
| 3 | }); | ||
| 4 | |||
| 5 | |||
| 1 | $(document).ready(function(){ | 6 | $(document).ready(function(){ |
| 7 | |||
| 8 | Shadowbox.setup(".shadowbox_image", {gallery : "fofo"}) | ||
| 9 | |||
| 2 | if ($("#headline_image img").length != 0) { | 10 | if ($("#headline_image img").length != 0) { |
| 3 | image_handler.initialize(); | 11 | image_handler.initialize(); |
| 4 | } | 12 | } |
| 13 | |||
| 14 | $("div#headline_image a").bind("click", function() { | ||
| 15 | return false; | ||
| 16 | }); | ||
| 17 | |||
| 18 | $("div#headline_image a img").bind("click", function(){ | ||
| 19 | $(".shadowbox_image:first").trigger("click"); | ||
| 20 | }); | ||
| 5 | }); | 21 | }); |
| 6 | 22 | ||
| 7 | 23 | ||
