mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
avoid race condition on delete checked items
This commit is contained in:
parent
e5b54e74ba
commit
c92e6ed929
2 changed files with 5 additions and 3 deletions
|
@ -26,6 +26,8 @@ function item_post(&$a) {
|
|||
require_once('include/items.php');
|
||||
$arr_drop = explode(',',$_POST['dropitems']);
|
||||
drop_items($arr_drop);
|
||||
$json = array('success' => 1);
|
||||
echo json_encode($json);
|
||||
killme();
|
||||
}
|
||||
|
||||
|
|
|
@ -120,9 +120,9 @@ tinyMCE.init({
|
|||
checkedstr = $(this).val();
|
||||
}
|
||||
});
|
||||
$.post('item', { dropitems: checkedstr });
|
||||
window.location.reload();
|
||||
|
||||
$.post('item', { dropitems: checkedstr }, function(data) {
|
||||
window.location.reload();
|
||||
});
|
||||
}
|
||||
|
||||
function jotGetLink() {
|
||||
|
|
Loading…
Reference in a new issue