This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/contrib/report_image/report_image.js
atg 078043b9bf Alright, this time it should actually work with RCx. It now requires a different theme file for RCx.
git-svn-id: file:///home/shish/svn/shimmie2/trunk@614 7f39781d-f577-437e-ae19-be835c7a54ca
2007-11-06 20:59:15 +00:00

37 lines
No EOL
1 KiB
JavaScript
Executable file

/*
* Name: Report Images
* Author: ATravelingGeek (atg@atravelinggeek.com
* Link: http://atravelinggeek.com/
* License: GPLv2
* Description: Report images as dupes/illegal/etc
* Version 0.3a - See changelog in main.php
* November 06, 2007
*/
function validate_report()
{
if(document.ReportImage.reason_type.value=="Select a reason...") {
alert("Please select a reason!");
document.ReportImage.reason_type.focus();
return false;
}
if(document.ReportImage.reason.value == "Please enter a reason" || document.ReportImage.reason.value == '' || document.ReportImage.reason.value == "Please enter the Image ID") {
alert("Please enter a reason!");
document.ReportImage.reason.focus();
document.ReportImage.reason.select();
return false;
}
}
function change_reason()
{
if(document.ReportImage.reason_type.value == "Duplicate"){
document.ReportImage.reason.value = "Enter the Image ID";
} else {
document.ReportImage.reason.value = "Please enter a reason";
}
}