diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-05-24 21:13:42 -0400 |
---|---|---|
committer | Robin Millette <millette@controlyourself.ca> | 2009-05-24 21:13:42 -0400 |
commit | 5f3acc252738e408ea2447b7541eae66c1e9e09a (patch) | |
tree | 456796bb29a31e521d133396d2adb9538f6f22b2 /js | |
parent | 69f9bce276d86538c176e0c26e734ba694119864 (diff) |
Removed big clip and replaced with smaller inline one next to each URL (in a notice) that's actually an attachment. Overlay (popup) on click.
Diffstat (limited to 'js')
-rw-r--r-- | js/util.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js index 6511c0380..b6848abaa 100644 --- a/js/util.js +++ b/js/util.js @@ -20,7 +20,11 @@ $(document).ready(function(){ // attachments and attachment pages not used at the moment except for attachment_ajax version // $('.attachments').click(function() {$().jOverlay({zIndex:999, success:function(html) {$('.attachment').click(function() {$().jOverlay({url:$(this).attr('href') + '/ajax'}); return false; }); // }, url:$(this).attr('href') + '/ajax'}); return false; }); - $('.attachment').click(function() {$().jOverlay({url:'../attachment/' + ($(this).attr('id').substring('attachment'.length + 1)) + '/ajax'}); return false; }); + + //FIXME + //need to link to proper url depending on site config (path name and theme, for instance) + $('a.attachment').click(function() {$().jOverlay({url:'/attachment/' + ($(this).attr('id').substring('attachment'.length + 1)) + '/ajax'}); return false; }); + $('.entry-title a.attachment').append(' <img style="display: inline; vertical-align: middle" src="/theme/base/images/icons/clip-inline.png" alt="Attachment" />'); // count character on keyup function counter(event){ |