aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-09-16 12:51:14 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-09-16 12:51:14 +0200
commit6b6f45f9f1c0fa5c0142c0bf1d9a93b77694ea4b (patch)
treec8dfd7aa6f5c93f6106f12959da426c506fe492a /js
parent80af4f3fe647e52add7e38cabc356597fae57a22 (diff)
downloadvolse-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.js20
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();
});
}