includes/clientside/static/ajax.js
changeset 592 27377179fe58
parent 585 35e91d16ecf5
child 650 e45183014778
equal deleted inserted replaced
591:2529833a7731 592:27377179fe58
   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'));