Browse Source

avoid race condition on delete checked items

pull/1/head
Friendika 11 years ago
parent
commit
c92e6ed929
  1. 2
      mod/item.php
  2. 6
      view/jot-header.tpl

2
mod/item.php

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

6
view/jot-header.tpl

@ -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…
Cancel
Save