aboutsummaryrefslogtreecommitdiffstats
path: root/include/main.js
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-03 19:41:04 -0700
committerFriendika <info@friendika.com>2011-07-03 19:41:04 -0700
commit5ceeb6752d645036b832077d88b71a8825952322 (patch)
tree1cf61d116761b52bf53592241a3b7a178d1675e0 /include/main.js
parentbef68a8c7fe021bd6effc3e4bad62dbd1d229e87 (diff)
downloadvolse-hubzilla-5ceeb6752d645036b832077d88b71a8825952322.tar.gz
volse-hubzilla-5ceeb6752d645036b832077d88b71a8825952322.tar.bz2
volse-hubzilla-5ceeb6752d645036b832077d88b71a8825952322.zip
starred items
Diffstat (limited to 'include/main.js')
-rw-r--r--include/main.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/main.js b/include/main.js
index c2772000d..26c78b277 100644
--- a/include/main.js
+++ b/include/main.js
@@ -174,6 +174,21 @@
liking = 1;
}
+ function dostar(ident) {
+ $('#like-rotator-' + ident.toString()).show();
+ $.get('starred/' + ident.toString(), function(data) {
+ if(data.match(/1/)) {
+ $('#starred-' + ident.toString()).addClass('starred');
+ $('#starred-' + ident.toString()).removeClass('unstarred');
+ }
+ else {
+ $('#starred-' + ident.toString()).addClass('unstarred');
+ $('#starred-' + ident.toString()).removeClass('starred');
+ }
+ $('#like-rotator-' + ident.toString()).hide();
+ });
+ }
+
function getPosition(e) {
var cursor = {x:0, y:0};
if ( e.pageX || e.pageY ) {