mirror of
https://github.com/friendica/friendica
synced 2025-04-22 02:30:11 +00:00
starred items
This commit is contained in:
parent
bef68a8c7f
commit
5ceeb6752d
10 changed files with 123 additions and 14 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue