delete selected items
This commit is contained in:
parent
7659f2a87a
commit
e5b54e74ba
11 changed files with 225 additions and 129 deletions
|
@ -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) {
|
||||
|
|
4
view/photo_drop.tpl
Normal file
4
view/photo_drop.tpl
Normal file
|
@ -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>
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue