added deleteCheckedItems to jot-header.tpl
This commit is contained in:
parent
02a4d8c39f
commit
399c5aed1e
1 changed files with 18 additions and 0 deletions
|
@ -110,6 +110,24 @@ tinyMCE.init({
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function deleteCheckedItems() {
|
||||||
|
var checkedstr = '';
|
||||||
|
|
||||||
|
$('.item-select').each( function() {
|
||||||
|
if($(this).is(':checked')) {
|
||||||
|
if(checkedstr.length != 0) {
|
||||||
|
checkedstr = checkedstr + ',' + $(this).val();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
checkedstr = $(this).val();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$.post('item', { dropitems: checkedstr }, function(data) {
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function jotGetLink() {
|
function jotGetLink() {
|
||||||
reply = prompt("$linkurl");
|
reply = prompt("$linkurl");
|
||||||
if(reply && reply.length) {
|
if(reply && reply.length) {
|
||||||
|
|
Loading…
Reference in a new issue