aboutsummaryrefslogtreecommitdiffstats
path: root/view/jot-header.tpl
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-15 20:43:39 -0700
committerFriendika <info@friendika.com>2011-06-15 20:43:39 -0700
commite5b54e74ba22b487f816c5a5d16758be34be785a (patch)
tree9dcfe11ddc57e95bb9e0e8aab9c320397f0db11f /view/jot-header.tpl
parent7659f2a87ac5b1de55d0e9f26027fe4f1f05d14b (diff)
downloadvolse-hubzilla-e5b54e74ba22b487f816c5a5d16758be34be785a.tar.gz
volse-hubzilla-e5b54e74ba22b487f816c5a5d16758be34be785a.tar.bz2
volse-hubzilla-e5b54e74ba22b487f816c5a5d16758be34be785a.zip
delete selected items
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r--view/jot-header.tpl16
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) {