1
0
Fork 0

avoid race condition on delete checked items

This commit is contained in:
Friendika 2011-06-16 00:38:41 -07:00
parent e5b54e74ba
commit c92e6ed929
2 changed files with 5 additions and 3 deletions

View file

@ -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();
}

View file

@ -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() {