]> git.mxchange.org Git - friendica.git/commitdiff
added deleteCheckedItems to jot-header.tpl
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 28 Jun 2011 11:03:19 +0000 (13:03 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 28 Jun 2011 11:03:19 +0000 (13:03 +0200)
view/theme/dispy/jot-header.tpl

index aa9e0bfafc44ecd44b9904c7a481a6fa5cf2ad89..3c70473ba5d22872c26a582253b431766e5fce9d 100644 (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) {