diff options
author | Friendika <info@friendika.com> | 2011-06-15 20:43:39 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-15 20:43:39 -0700 |
commit | e5b54e74ba22b487f816c5a5d16758be34be785a (patch) | |
tree | 9dcfe11ddc57e95bb9e0e8aab9c320397f0db11f /view | |
parent | 7659f2a87ac5b1de55d0e9f26027fe4f1f05d14b (diff) | |
download | volse-hubzilla-e5b54e74ba22b487f816c5a5d16758be34be785a.tar.gz volse-hubzilla-e5b54e74ba22b487f816c5a5d16758be34be785a.tar.bz2 volse-hubzilla-e5b54e74ba22b487f816c5a5d16758be34be785a.zip |
delete selected items
Diffstat (limited to 'view')
-rw-r--r-- | view/jot-header.tpl | 16 | ||||
-rw-r--r-- | view/photo_drop.tpl | 4 | ||||
-rw-r--r-- | view/theme/duepuntozero/style.css | 24 | ||||
-rw-r--r-- | view/theme/loozah/style.css | 27 | ||||
-rw-r--r-- | view/wall_item_drop.tpl | 2 |
5 files changed, 73 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) { diff --git a/view/photo_drop.tpl b/view/photo_drop.tpl new file mode 100644 index 000000000..b4ea62b45 --- /dev/null +++ b/view/photo_drop.tpl @@ -0,0 +1,4 @@ +<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" > + <a href="item/drop/$id" onclick="return confirmDelete();" class="icon drophide" title="$delete" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a> +</div> +<div class="wall-item-delete-end"></div> diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index 155641463..3bf78346f 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -2489,8 +2489,32 @@ a.mail-list-link { margin-top: 10px; } +.item-select { + opacity: 0.3; + filter:alpha(opacity=30); + float: right; + margin-right: 10px; + +} +.item-select:hover { + opacity: 1; + filter:alpha(opacity=100); +} +#item-delete-selected { + margin-top: 30px; +} +#item-delete-selected-end { + clear: both; +} +#item-delete-selected-icon, #item-delete-selected-desc { + float: left; + margin-right: 5px; +} +#item-delete-selected-desc:hover { + text-decoration: underline; +} #lang-select-icon { cursor: pointer; diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css index d70968a84..c07ef045a 100644 --- a/view/theme/loozah/style.css +++ b/view/theme/loozah/style.css @@ -2518,6 +2518,33 @@ a.mail-list-link { } +.item-select { + opacity: 0.3; + filter:alpha(opacity=30); + float: right; + margin-right: 10px; + +} +.item-select:hover { + opacity: 1; + filter:alpha(opacity=100); +} + +#item-delete-selected { + margin-top: 30px; +} + +#item-delete-selected-end { + clear: both; +} +#item-delete-selected-icon, #item-delete-selected-desc { + float: left; + margin-right: 5px; +} +#item-delete-selected-desc:hover { + text-decoration: underline; +} + #lang-select-icon { cursor: pointer; position: absolute; diff --git a/view/wall_item_drop.tpl b/view/wall_item_drop.tpl index b4ea62b45..b10c21093 100644 --- a/view/wall_item_drop.tpl +++ b/view/wall_item_drop.tpl @@ -1,4 +1,6 @@ <div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" > + <a href="item/drop/$id" onclick="return confirmDelete();" class="icon drophide" title="$delete" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a> </div> +<input type="checkbox" class="item-select" name="itemselected[]" value="$id" /> <div class="wall-item-delete-end"></div> |