fembooru/contrib/report_image/report_image.js
atg e4e9c34297 Initial version of report_image extention
git-svn-id: file:///home/shish/svn/shimmie2/trunk@568 7f39781d-f577-437e-ae19-be835c7a54ca
2007-10-24 21:45:38 +00:00

37 lines
997 B
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.2
* October 24, 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";
}
}