diff options
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r-- | view/jot-header.tpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 77e5bc4bc..382a52644 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -109,6 +109,22 @@ 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 }); + window.location.reload(); + + } + function jotGetLink() { reply = prompt("$linkurl"); if(reply && reply.length) { |