equal
deleted
inserted
replaced
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); |