Changeset 5095

Show
Ignore:
Timestamp:
10/03/07 19:40:58 (6 years ago)
Author:
p_lindheimer
Message:

#2412 leftover goto_indicate in javascript making validation fail

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/common/libfreepbx.javascripts.js

    r5042 r5095  
    3030{elem.onmouseover=doHideSelects;elem.onmouseout=doShowSelects;}}}}} 
    3131function updateInfoTargets(){links=document.getElementsByTagName('a');var i,elem;for(i=0;elem=links[i];i++){if(elem.className=='info'&&elem.href.charAt(elem.href.length-1)=='#'){elem.href='javascript:void(null)';}}} 
    32 function setDestinations(theForm,numForms){for(var formNum=0;formNum<numForms;formNum++){var whichitem=0;while(whichitem<theForm['goto_indicate'+formNum].length){if(theForm['goto_indicate'+formNum][whichitem].checked){theForm['goto'+formNum].value=theForm['goto_indicate'+formNum][whichitem].value;} 
     32function setDestinations(theForm,numForms){for(var formNum=0;formNum<numForms;formNum++){var whichitem=0;while(whichitem<theForm['goto'+formNum].length){if(theForm['goto'+formNum][whichitem].checked){theForm['goto'+formNum].value=theForm['goto'+formNum][whichitem].value;} 
    3333whichitem++;}}} 
    3434function body_loaded(){setAllInfoToHideSelects();updateInfoTargets();} 
  • freepbx/trunk/amp_conf/htdocs/admin/common/script.legacy.js

    r5042 r5095  
    116116  for (var formNum = 0; formNum < numForms; formNum++) { 
    117117    var whichitem = 0; 
    118     while (whichitem < theForm['goto_indicate'+formNum].length) { 
    119       if (theForm['goto_indicate'+formNum][whichitem].checked) { 
    120         theForm['goto'+formNum].value=theForm['goto_indicate'+formNum][whichitem].value; 
     118    while (whichitem < theForm['goto'+formNum].length) { 
     119      if (theForm['goto'+formNum][whichitem].checked) { 
     120        theForm['goto'+formNum].value=theForm['goto'+formNum][whichitem].value; 
    121121      } 
    122122      whichitem++;