]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/dispy/jot-header.tpl
Merge branch 'dispy' of github.com:fabrixxm/friendika into dispy
[friendica.git] / view / theme / dispy / jot-header.tpl
index aa9e0bfafc44ecd44b9904c7a481a6fa5cf2ad89..eb88f00c1f0a132afdf4a573d35515ac121a4d1e 100644 (file)
@@ -1,5 +1,5 @@
 
-<script language="javascript" type="text/javascript" src="$baseurl/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
+<script language="javascript" type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
 <script language="javascript" type="text/javascript">
 
 var editor;
@@ -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) {