summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-05-15 15:04:58 -0400
committerRobin Millette <millette@controlyourself.ca>2009-05-15 15:04:58 -0400
commitfecb8c706dadb790c3a8c219275b4ba88e00b8ea (patch)
tree674650bcdc21627aedb97250426a554c85eca096 /js/util.js
parent2e394ef47ce2f069e331c24586cda13bc34413aa (diff)
Attachments and their list now provide "ajax" view. Also added a few sidebars relating tags and attachments.
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index 3f14bc61c..31d9eb4f5 100644
--- a/js/util.js
+++ b/js/util.js
@@ -17,6 +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; });
+
// count character on keyup
function counter(event){
var maxLength = 140;