includes/clientside/sbedit.js
changeset 202 88d7a7c2743c
parent 190 e858bacb5cfa
child 365 cc6bf4d63684
equal deleted inserted replaced
201:2303ef648290 202:88d7a7c2743c
   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);