aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-28 13:03:19 +0200
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-28 13:03:19 +0200
commit399c5aed1e3eb66565b1f821bec9e4889b386ee1 (patch)
tree315f32ee4617d25d2ea6b6883ae1f253978e08a4 /view
parent02a4d8c39f04c702303ec1bc058e8d1fee0f2136 (diff)
downloadvolse-hubzilla-399c5aed1e3eb66565b1f821bec9e4889b386ee1.tar.gz
volse-hubzilla-399c5aed1e3eb66565b1f821bec9e4889b386ee1.tar.bz2
volse-hubzilla-399c5aed1e3eb66565b1f821bec9e4889b386ee1.zip
added deleteCheckedItems to jot-header.tpl
Diffstat (limited to 'view')
-rw-r--r--view/theme/dispy/jot-header.tpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/view/theme/dispy/jot-header.tpl b/view/theme/dispy/jot-header.tpl
index aa9e0bfaf..3c70473ba 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) {