aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-28 15:23:56 -0700
committerFriendika <info@friendika.com>2011-06-28 15:23:56 -0700
commit0a6b4c93fe84a216cafd7123b5586cb42aa786fb (patch)
tree315f32ee4617d25d2ea6b6883ae1f253978e08a4
parent02a4d8c39f04c702303ec1bc058e8d1fee0f2136 (diff)
parent399c5aed1e3eb66565b1f821bec9e4889b386ee1 (diff)
downloadvolse-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
-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) {