Browse Source

added deleteCheckedItems to jot-header.tpl

pull/1/head
Tobias Diekershoff 11 years ago
parent
commit
399c5aed1e
  1. 18
      view/theme/dispy/jot-header.tpl

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

Loading…
Cancel
Save