reduce indentation

This commit is contained in:
Jakobus Schürz 2023-03-09 17:43:14 +01:00
parent 96c3321bb8
commit 2219978788

View File

@ -808,8 +808,7 @@ function doActivityItemAction(ident, verb, un) {
// do request for activity // do request for activity
$.post('item/' + ident.toString() + '/activity/' + _verb) $.post('item/' + ident.toString() + '/activity/' + _verb)
.success( .success(function(data){
function(data){
//$('#like-rotator-' + ident.toString()).hide(); //$('#like-rotator-' + ident.toString()).hide();
$('img[id^=waitfor-' + verb + '-' + ident.toString() + ']').remove(); $('img[id^=waitfor-' + verb + '-' + ident.toString() + ']').remove();
if (data.status == 'ok') { if (data.status == 'ok') {
@ -844,7 +843,6 @@ function doActivityItemAction(ident, verb, un) {
} else { } else {
$('button[id^=shareMenuOptions-' + ident.toString() + ']').addClass('active'); $('button[id^=shareMenuOptions-' + ident.toString() + ']').addClass('active');
} }
} }
} else { } else {
/* server-response was not ok. Database-problems or some changes in /* server-response was not ok. Database-problems or some changes in
@ -858,8 +856,7 @@ function doActivityItemAction(ident, verb, un) {
$.jGrowl(verb + ' not successful (server error)', {sticky: false, theme: 'info', life: 5000}); $.jGrowl(verb + ' not successful (server error)', {sticky: false, theme: 'info', life: 5000});
} }
}) })
.error( .error(function(data){
function(data){
/* Server could not be reaches successfully */ /* Server could not be reaches successfully */
// remindert to remove the like-rotator from templates // remindert to remove the like-rotator from templates
//$('#like-rotator-' + ident.toString()).hide(); //$('#like-rotator-' + ident.toString()).hide();