equal
deleted
inserted
replaced
147 { |
147 { |
148 var box = miniPromptGetParent(obj); |
148 var box = miniPromptGetParent(obj); |
149 if ( !box ) |
149 if ( !box ) |
150 return false; |
150 return false; |
151 |
151 |
152 var newname = ( obj.getElementsByTagName('input')[0] ).value; |
152 var input = obj.getElementsByTagName('input')[0]; |
|
153 console.debug(obj, input); |
|
154 if ( !input ) |
|
155 return false; |
|
156 var newname = input.value; |
153 newname = trim(newname); |
157 newname = trim(newname); |
154 |
158 |
155 if ( newname.length < 1 ) |
159 if ( newname.length < 1 ) |
156 { |
160 { |
157 alert($lang.get('ajax_rename_too_short')); |
161 alert($lang.get('ajax_rename_too_short')); |