Actually I did find another small bug, it allows you to click Add Folder even if you dont enter a folder name, and it then creates a blak folder.
The fix.
In pm_public_folders_summary.pl
find:
code:
function Rename(num) {
var ti = prompt("$vars_wordlets{PM_rename_folder}", '');
if(ti && ti != null && ti != "null" && ti != "") {
var di = prompt("What would you like this folder's description to be?", '');
document.RenameF.Num.value = num;
document.RenameF.Name.value = ti;
document.RenameF.Desc.value = di;
document.RenameF.submit();
}
}
After it Add:
code:
[qb]function validateForm(theForm)
{
if ( document.all.add_name.value.length == 0) {
alert('Folder name cannot be blank');
document.all.add_name.focus();
return false;
}
return true;
}
[/qb]
Find:
code:
<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi">
Replace that with:
code:
[qb]<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi" onsubmit="return validateForm(this)" >
[/qb]
This just adds some simple javascript error checking.