1
1
Fork 0

added deleteCheckedItems to jot-header.tpl

This commit is contained in:
Tobias Diekershoff 2011-06-28 13:03:19 +02:00
parent 02a4d8c39f
commit 399c5aed1e

View file

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