diff options
author | Friendika <info@friendika.com> | 2011-06-28 15:23:56 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-28 15:23:56 -0700 |
commit | 0a6b4c93fe84a216cafd7123b5586cb42aa786fb (patch) | |
tree | 315f32ee4617d25d2ea6b6883ae1f253978e08a4 /view/theme/dispy/jot-header.tpl | |
parent | 02a4d8c39f04c702303ec1bc058e8d1fee0f2136 (diff) | |
parent | 399c5aed1e3eb66565b1f821bec9e4889b386ee1 (diff) | |
download | volse-hubzilla-0a6b4c93fe84a216cafd7123b5586cb42aa786fb.tar.gz volse-hubzilla-0a6b4c93fe84a216cafd7123b5586cb42aa786fb.tar.bz2 volse-hubzilla-0a6b4c93fe84a216cafd7123b5586cb42aa786fb.zip |
Merge pull request #129 from tobiasd/master
deleteCheckedItems was missing in dispy
Diffstat (limited to 'view/theme/dispy/jot-header.tpl')
-rw-r--r-- | view/theme/dispy/jot-header.tpl | 18 |
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) { |