diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-09-16 12:51:14 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-09-16 12:51:14 +0200 |
commit | 6b6f45f9f1c0fa5c0142c0bf1d9a93b77694ea4b (patch) | |
tree | c8dfd7aa6f5c93f6106f12959da426c506fe492a /js | |
parent | 80af4f3fe647e52add7e38cabc356597fae57a22 (diff) | |
download | volse-hubzilla-6b6f45f9f1c0fa5c0142c0bf1d9a93b77694ea4b.tar.gz volse-hubzilla-6b6f45f9f1c0fa5c0142c0bf1d9a93b77694ea4b.tar.bz2 volse-hubzilla-6b6f45f9f1c0fa5c0142c0bf1d9a93b77694ea4b.zip |
quattro: initial style of conversations
Diffstat (limited to 'js')
-rw-r--r-- | js/main.js | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/js/main.js b/js/main.js index d5d38062e..f08b669e3 100644 --- a/js/main.js +++ b/js/main.js @@ -71,6 +71,7 @@ /* popup menus */ $('a[rel^=#]').click(function(e){ menu = $( $(this).attr('rel') ); + e.preventDefault(); e.stopPropagation(); if (menu.attr('popup')=="false") return false; $(this).parent().toggleClass("selected"); @@ -261,17 +262,22 @@ } function dostar(ident) { - $('#like-rotator-' + ident.toString()).show(); - $.get('starred/' + ident.toString(), function(data) { + ident = ident.toString(); + $('#like-rotator-' + ident).show(); + $.get('starred/' + ident, function(data) { if(data.match(/1/)) { - $('#starred-' + ident.toString()).addClass('starred'); - $('#starred-' + ident.toString()).removeClass('unstarred'); + $('#starred-' + ident).addClass('starred'); + $('#starred-' + ident).removeClass('hidden'); + $('#star-' + ident).addClass('hidden'); + $('#unstar-' + ident).removeClass('hidden'); } else { - $('#starred-' + ident.toString()).addClass('unstarred'); - $('#starred-' + ident.toString()).removeClass('starred'); + $('#starred-' + ident).addClass('hidden'); + $('#starred-' + ident).removeClass('starred'); + $('#star-' + ident).removeClass('hidden'); + $('#unstar-' + ident).addClass('hidden'); } - $('#like-rotator-' + ident.toString()).hide(); + $('#like-rotator-' + ident).hide(); }); } |