Merge pull request #129 from tobiasd/master
deleteCheckedItems was missing in dispy
This commit is contained in:
commit
0a6b4c93fe
1 changed files with 18 additions and 0 deletions
|
@ -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() {
|
function jotGetLink() {
|
||||||
reply = prompt("$linkurl");
|
reply = prompt("$linkurl");
|
||||||
if(reply && reply.length) {
|
if(reply && reply.length) {
|
||||||
|
|
Loading…
Reference in a new issue