summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-05-24 04:43:34 -0400
committerRobin Millette <millette@controlyourself.ca>2009-05-24 04:43:34 -0400
commitb5ac6e31f2f148164860aeabec6899b75d7292ec (patch)
tree5016a9624a923793f231d066d7519e8e3a0a8075 /js
parent456f3eeb50fc1cafaa66ab5c0bdcdcaa5ca4bcd0 (diff)
Rearranged attachment info to only appear on each applicable notice page and thru an ajax popup.
Diffstat (limited to 'js')
-rw-r--r--js/util.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/util.js b/js/util.js
index 2dfaafd76..4f2b036fa 100644
--- a/js/util.js
+++ b/js/util.js
@@ -17,9 +17,10 @@
*/
$(document).ready(function(){
- $('.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:$(this).attr('href') + '/ajax'}); return false; });
+// 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:'http://laptop.waglo.com/attachment/' + ($(this).attr('id').substring('attachment'.length + 1)) + '/ajax'}); return false; });
// count character on keyup
function counter(event){