avoid race condition on delete checked items
This commit is contained in:
parent
e5b54e74ba
commit
c92e6ed929
|
@ -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