Three new functions: CheckAll, which toggles checkboxes in results lists; confirmDelete, which offers a warning before proceding with an action; Dopop, for popping up virtual shelves window
This commit is contained in:
parent
085eb6ac53
commit
f72e8b7de5
|
|
@ -38,3 +38,29 @@ function ValidateCode()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
function CheckAll()
|
||||
{
|
||||
count = document.mainform.elements.length;
|
||||
for (i=0; i < count; i++)
|
||||
{
|
||||
if(document.mainform.elements[i].checked == 1){
|
||||
document.mainform.elements[i].checked = 0;
|
||||
} else {
|
||||
document.mainform.elements[i].checked = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function confirmDelete(message) {
|
||||
var agree = confirm(message);
|
||||
if(agree) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function Dopop(link) {
|
||||
newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
|
||||
}
|
||||
Loading…
Reference in New Issue