delete by query confirm now uses jquery
This commit is contained in:
parent
a470bda95e
commit
5a2326614a
@ -35,14 +35,15 @@ class AdminPageTheme extends Themelet {
|
|||||||
|
|
||||||
/* First check
|
/* First check
|
||||||
Requires you to click the checkbox to enable the delete by query form */
|
Requires you to click the checkbox to enable the delete by query form */
|
||||||
$dbqcheck = "
|
$dbqcheck = 'javascript:$(function() {
|
||||||
if(document.getElementById("dbqcheck").checked == false){
|
if($("#dbqcheck:checked").length != 0){
|
||||||
document.getElementById("dbqtags").disabled = true;
|
$("#dbqtags").attr("disabled", false);
|
||||||
document.getElementById("dbqsubmit").disabled = true;
|
$("#dbqsubmit").attr("disabled", false);
|
||||||
}else{
|
}else{
|
||||||
document.getElementById("dbqtags").disabled = false;
|
$("#dbqtags").attr("disabled", true);
|
||||||
document.getElementById("dbqsubmit").disabled = false;
|
$("#dbqsubmit").attr("disabled", true);
|
||||||
}";
|
}
|
||||||
|
});';
|
||||||
|
|
||||||
/* Second check
|
/* Second check
|
||||||
Requires you to confirm the deletion by clicking ok. */
|
Requires you to confirm the deletion by clicking ok. */
|
||||||
@ -52,7 +53,7 @@ class AdminPageTheme extends Themelet {
|
|||||||
if(confirm('Are you sure you wish to delete all images using these tags?')){
|
if(confirm('Are you sure you wish to delete all images using these tags?')){
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>"
|
</script>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user