I finally got around to releasing version 2 of the Robots.txt editor.
Changes & new features:
Hi Lee great package but I found a little bug in your javascript. When you cancel an "insert disallow rule" it still adds an empty rule. The following lines solves this problem.
function robotsTxtInsertRule(rule, defstr) { var value = prompt('Please enter a value for the rule', defstr); if (value) { // check if the OK button is pressedinsertCode('\n' + rule, value, '<%= editorSource.ClientID %>');}}
function
robotsTxtInsertRule(rule, defstr) {
var value = prompt('Please enter a value for the rule', defstr);
if (value) { // check if the OK button is pressedinsertCode(
insertCode(
'\n' + rule, value, '<%= editorSource.ClientID %>');}}
}
Jorrit
Thanks Jorrit, I'll add the check to the next version! Much appreciated.
Cheers, Lee.