mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:40:16 +00:00
Update doignore() in main.js to match new Item\Ignore return type
- Remove superfluous jQuery selectors
This commit is contained in:
parent
c3d88aca39
commit
d01d69b9e7
1 changed files with 7 additions and 5 deletions
|
@ -649,14 +649,16 @@ function doignore(ident) {
|
||||||
ident = ident.toString();
|
ident = ident.toString();
|
||||||
$('#like-rotator-' + ident).show();
|
$('#like-rotator-' + ident).show();
|
||||||
$.get('item/ignore/' + ident, function(data) {
|
$.get('item/ignore/' + ident, function(data) {
|
||||||
if (data.match(/1/)) {
|
if (data === 1) {
|
||||||
$('#ignored-' + ident).addClass('ignored');
|
$('#ignored-' + ident)
|
||||||
$('#ignored-' + ident).removeClass('unignored');
|
.addClass('ignored')
|
||||||
|
.removeClass('unignored');
|
||||||
$('#ignore-' + ident).addClass('hidden');
|
$('#ignore-' + ident).addClass('hidden');
|
||||||
$('#unignore-' + ident).removeClass('hidden');
|
$('#unignore-' + ident).removeClass('hidden');
|
||||||
} else {
|
} else {
|
||||||
$('#ignored-' + ident).addClass('unignored');
|
$('#ignored-' + ident)
|
||||||
$('#ignored-' + ident).removeClass('ignored');
|
.addClass('unignored')
|
||||||
|
.removeClass('ignored');
|
||||||
$('#ignore-' + ident).removeClass('hidden');
|
$('#ignore-' + ident).removeClass('hidden');
|
||||||
$('#unignore-' + ident).addClass('hidden');
|
$('#unignore-' + ident).addClass('hidden');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue