Zeile 36 | Zeile 36 |
---|
if(request) { try {
|
if(request) { try {
|
var json = $.parseJSON(request.responseText);
| var json = JSON.parse(request.responseText);
|
if(json.hasOwnProperty("errors")) { $.each(json.errors, function(i, message)
| if(json.hasOwnProperty("errors")) { $.each(json.errors, function(i, message)
|
Zeile 199 | Zeile 199 |
---|
type: 'post', url: 'usercp.php?action=do_editlists&my_post_key='+my_post_key+'&manage='+type, data: { ajax: 1, add_username: type_add_username.val() },
|
type: 'post', url: 'usercp.php?action=do_editlists&my_post_key='+my_post_key+'&manage='+type, data: { ajax: 1, add_username: type_add_username.val() },
|
async: false,
| async: true,
|
complete: function (request) { if(request.responseText.indexOf("buddy_count") >= 0 || request.responseText.indexOf("ignored_count") >= 0)
| complete: function (request) { if(request.responseText.indexOf("buddy_count") >= 0 || request.responseText.indexOf("ignored_count") >= 0)
|
Zeile 211 | Zeile 211 |
---|
$("#sentrequests").html(request.responseText); }
|
$("#sentrequests").html(request.responseText); }
|
type_submit.removeAttr("disabled"); type_add_username.removeAttr("disabled");
| type_submit.prop("disabled", false); type_add_username.prop("disabled", false);
|
type_submit.attr("value", old_value); type_add_username.val("");
|
type_submit.attr("value", old_value); type_add_username.val("");
|
type_add_username.focus();
| type_add_username.trigger('focus');
|
type_add_username.select2('data', null); } });
| type_add_username.select2('data', null); } });
|
Zeile 247 | Zeile 247 |
---|
type: 'post', url: 'usercp.php?action=do_editlists&my_post_key='+my_post_key+'&manage='+type+'&delete='+uid, data: { ajax: 1 },
|
type: 'post', url: 'usercp.php?action=do_editlists&my_post_key='+my_post_key+'&manage='+type+'&delete='+uid, data: { ajax: 1 },
|
async: false
| async: true
|
}); } }
| }); } }
|