From 399c5aed1e3eb66565b1f821bec9e4889b386ee1 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 28 Jun 2011 13:03:19 +0200 Subject: [PATCH] added deleteCheckedItems to jot-header.tpl --- view/theme/dispy/jot-header.tpl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/view/theme/dispy/jot-header.tpl b/view/theme/dispy/jot-header.tpl index aa9e0bfafc..3c70473ba5 100644 --- a/view/theme/dispy/jot-header.tpl +++ b/view/theme/dispy/jot-header.tpl @@ -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() { reply = prompt("$linkurl"); if(reply && reply.length) {