reduce indentation
This commit is contained in:
parent
96c3321bb8
commit
2219978788
|
@ -808,8 +808,7 @@ function doActivityItemAction(ident, verb, un) {
|
|||
|
||||
// do request for activity
|
||||
$.post('item/' + ident.toString() + '/activity/' + _verb)
|
||||
.success(
|
||||
function(data){
|
||||
.success(function(data){
|
||||
//$('#like-rotator-' + ident.toString()).hide();
|
||||
$('img[id^=waitfor-' + verb + '-' + ident.toString() + ']').remove();
|
||||
if (data.status == 'ok') {
|
||||
|
@ -844,7 +843,6 @@ function doActivityItemAction(ident, verb, un) {
|
|||
} else {
|
||||
$('button[id^=shareMenuOptions-' + ident.toString() + ']').addClass('active');
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
/* 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});
|
||||
}
|
||||
})
|
||||
.error(
|
||||
function(data){
|
||||
.error(function(data){
|
||||
/* Server could not be reaches successfully */
|
||||
// remindert to remove the like-rotator from templates
|
||||
//$('#like-rotator-' + ident.toString()).hide();
|
||||
|
|
Loading…
Reference in New Issue
Block a user