mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
It is now possible to ignore threads.
This commit is contained in:
parent
73904bfa03
commit
7eeb320085
9 changed files with 244 additions and 62 deletions
24
js/main.js
24
js/main.js
|
@ -441,13 +441,33 @@
|
|||
$('#star-' + ident).addClass('hidden');
|
||||
$('#unstar-' + ident).removeClass('hidden');
|
||||
}
|
||||
else {
|
||||
else {
|
||||
$('#starred-' + ident).addClass('unstarred');
|
||||
$('#starred-' + ident).removeClass('starred');
|
||||
$('#star-' + ident).removeClass('hidden');
|
||||
$('#unstar-' + ident).addClass('hidden');
|
||||
}
|
||||
$('#like-rotator-' + ident).hide();
|
||||
$('#like-rotator-' + ident).hide();
|
||||
});
|
||||
}
|
||||
|
||||
function doignore(ident) {
|
||||
ident = ident.toString();
|
||||
$('#like-rotator-' + ident).show();
|
||||
$.get('ignored/' + ident, function(data) {
|
||||
if(data.match(/1/)) {
|
||||
$('#ignored-' + ident).addClass('ignored');
|
||||
$('#ignored-' + ident).removeClass('unignored');
|
||||
$('#ignore-' + ident).addClass('hidden');
|
||||
$('#unignore-' + ident).removeClass('hidden');
|
||||
}
|
||||
else {
|
||||
$('#ignored-' + ident).addClass('unignored');
|
||||
$('#ignored-' + ident).removeClass('ignored');
|
||||
$('#ignore-' + ident).removeClass('hidden');
|
||||
$('#unignore-' + ident).addClass('hidden');
|
||||
}
|
||||
$('#like-rotator-' + ident).hide();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue