includes/clientside/sbedit.js
changeset 202 88d7a7c2743c
parent 190 e858bacb5cfa
child 365 cc6bf4d63684
--- a/includes/clientside/sbedit.js	Sun Oct 21 02:33:25 2007 -0400
+++ b/includes/clientside/sbedit.js	Sun Oct 21 21:26:11 2007 -0400
@@ -164,7 +164,7 @@
   var id = input.sbedit_id;
   var parent = input.parentNode;
   parent.removeChild(input);
-  parent.appendChild(document.createTextNode(newname));
+  parent.appendChild(document.createTextNode(( newname == '' ? '<Unnamed>' : newname )));
   parent.ondblclick = function() { ajaxRenameSidebarStage1(this, this._idcache); return false; };
   var img = document.createElement('img');
   img.src = scriptPath + '/images/loading.gif';