includes/clientside/sbedit.js
changeset 205 62ee6685ad18
parent 190 88d7a7c2743c
equal deleted inserted replaced
185:90b7a52bea45 205:62ee6685ad18
   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);