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');
|
require_once('include/items.php');
|
||||||
$arr_drop = explode(',',$_POST['dropitems']);
|
$arr_drop = explode(',',$_POST['dropitems']);
|
||||||
drop_items($arr_drop);
|
drop_items($arr_drop);
|
||||||
|
$json = array('success' => 1);
|
||||||
|
echo json_encode($json);
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -120,9 +120,9 @@ tinyMCE.init({
|
||||||
checkedstr = $(this).val();
|
checkedstr = $(this).val();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$.post('item', { dropitems: checkedstr });
|
$.post('item', { dropitems: checkedstr }, function(data) {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function jotGetLink() {
|
function jotGetLink() {
|
||||||
|
|
Loading…
Reference in a new issue