diff options
author | Josh Angell <jbangell@gmail.com> | 2012-03-12 13:34:08 +0000 |
---|---|---|
committer | Josh Angell <jbangell@gmail.com> | 2012-03-12 13:34:08 +0000 |
commit | 3fc302069d8136e55edf7c91d0e4afe069e22b1c (patch) | |
tree | cb204cad5ced8d84ec8d0e8361a1b9ed90ad2f5f | |
parent | e66add783ba63d1ecbfd3dbd472234bc5c5cadc7 (diff) |
Add fancy box css, class to report page and js hook (for #209)
-rw-r--r-- | templates/web/fixmystreet/header.html | 1 | ||||
-rw-r--r-- | templates/web/fixmystreet/report/photo.html | 2 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 7 |
3 files changed, 9 insertions, 1 deletions
diff --git a/templates/web/fixmystreet/header.html b/templates/web/fixmystreet/header.html index fade721d5..dd1a90c5f 100644 --- a/templates/web/fixmystreet/header.html +++ b/templates/web/fixmystreet/header.html @@ -13,6 +13,7 @@ <link rel="stylesheet" href="[% version('/cobrands/fixmystreet/base.css') %]"> <link rel="stylesheet" href="[% version('/cobrands/fixmystreet/layout.css') %]" media="(min-width:48em)"> + <link rel="stylesheet" href="[% version('/js/fancybox/jquery.fancybox-1.3.4.css') %]"> <!--[if (lt IE 9) & (!IEMobile)]> <link rel="stylesheet" href="[% version('/cobrands/fixmystreet/layout.css') %]"> <![endif]--> diff --git a/templates/web/fixmystreet/report/photo.html b/templates/web/fixmystreet/report/photo.html index a338391ce..c78f76e2f 100644 --- a/templates/web/fixmystreet/report/photo.html +++ b/templates/web/fixmystreet/report/photo.html @@ -1,7 +1,7 @@ [% IF c.cobrand.allow_photo_display && object.photo %] [% photo = object.get_photo_params %] <div class="update-img"> - [% IF photo.url_full %]<a href="[% photo.url_full %]">[% END + [% IF photo.url_full %]<a href="[% photo.url_full %]" class="fancy-image">[% END %]<img alt="Photo of this report" [% IF photo.height %]height="[% photo.height %]" width="[% photo.width %]"[% END %] src="[% photo.url %]"> [%- IF photo.url_full %]</a>[% END %] </div> diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 6da87a2e7..97f97f22a 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -520,6 +520,13 @@ $.fn.drawer = function(id, ajax) { queue:false }).fadeOut(500); }); + + + + /* + * Fancybox fullscreen images + */ + $('.fancy-image').fancybox(); }); /* |