includes/clientside/sbedit.js
changeset 204 473cc747022a
parent 202 88d7a7c2743c
child 365 cc6bf4d63684
equal deleted inserted replaced
193:ebe99e82a59a 204:473cc747022a
   162 {
   162 {
   163   var newname = input.value;
   163   var newname = input.value;
   164   var id = input.sbedit_id;
   164   var id = input.sbedit_id;
   165   var parent = input.parentNode;
   165   var parent = input.parentNode;
   166   parent.removeChild(input);
   166   parent.removeChild(input);
   167   parent.appendChild(document.createTextNode(newname));
   167   parent.appendChild(document.createTextNode(( newname == '' ? '<Unnamed>' : newname )));
   168   parent.ondblclick = function() { ajaxRenameSidebarStage1(this, this._idcache); return false; };
   168   parent.ondblclick = function() { ajaxRenameSidebarStage1(this, this._idcache); return false; };
   169   var img = document.createElement('img');
   169   var img = document.createElement('img');
   170   img.src = scriptPath + '/images/loading.gif';
   170   img.src = scriptPath + '/images/loading.gif';
   171   parent.appendChild(img);
   171   parent.appendChild(img);
   172   newname = ajaxEscape(newname);
   172   newname = ajaxEscape(newname);