From d8f56d81126bdb7d60afeaf2015b598132884d83 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Wed, 21 Nov 2012 14:30:45 -0500 Subject: Reorganized TPS templates and scripts. The templates, JS, and CGI scripts for TPS have been moved into the TPS core package. Removed unused cfg.pl. Ticket #407 --- .../shared/docroot/esc/sow/js/ajax-dynamic-list.js | 288 --------------------- 1 file changed, 288 deletions(-) delete mode 100755 dogtag/tps-ui/shared/docroot/esc/sow/js/ajax-dynamic-list.js (limited to 'dogtag/tps-ui/shared/docroot/esc/sow/js/ajax-dynamic-list.js') diff --git a/dogtag/tps-ui/shared/docroot/esc/sow/js/ajax-dynamic-list.js b/dogtag/tps-ui/shared/docroot/esc/sow/js/ajax-dynamic-list.js deleted file mode 100755 index 4c89ede8a..000000000 --- a/dogtag/tps-ui/shared/docroot/esc/sow/js/ajax-dynamic-list.js +++ /dev/null @@ -1,288 +0,0 @@ -/************************************************************************************************************ -Ajax dynamic list -Copyright (C) 2006 DTHMLGoodies.com, Alf Magne Kalleland - -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. - -This library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License along with this library; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Dhtmlgoodies.com., hereby disclaims all copyright interest in this script -written by Alf Magne Kalleland. - -Alf Magne Kalleland, 2006 -Owner of DHTMLgoodies.com - -************************************************************************************************************/ - - var ajaxBox_offsetX = 0; - var ajaxBox_offsetY = 0; - var ajax_list_externalFile = 'ajax-list.cgi'; // Path to external file - var minimumLettersBeforeLookup = 1; // Number of letters entered before a lookup is performed. - - var ajax_list_objects = new Array(); - var ajax_list_cachedLists = new Array(); - var ajax_list_activeInput = false; - var ajax_list_activeItem; - var ajax_list_optionDivFirstItem = false; - var ajax_list_currentLetters = new Array(); - var ajax_optionDiv = false; - var ajax_optionDiv_iframe = false; - - var ajax_list_MSIE = false; - if(navigator.userAgent.indexOf('MSIE')>=0 && navigator.userAgent.indexOf('Opera')<0)ajax_list_MSIE=true; - - var currentListIndex = 0; - - function ajax_getTopPos(inputObj) - { - - var returnValue = inputObj.offsetTop; - while((inputObj = inputObj.offsetParent) != null){ - returnValue += inputObj.offsetTop; - } - return returnValue; - } - function ajax_list_cancelEvent() - { - return false; - } - - function ajax_getLeftPos(inputObj) - { - var returnValue = inputObj.offsetLeft; - while((inputObj = inputObj.offsetParent) != null)returnValue += inputObj.offsetLeft; - - return returnValue; - } - - function ajax_option_setValue(e,inputObj) - { - if(!inputObj)inputObj=this; - var tmpValue = inputObj.innerHTML; - if(ajax_list_MSIE)tmpValue = inputObj.innerText;else tmpValue = inputObj.textContent; - if(!tmpValue)tmpValue = inputObj.innerHTML; - ajax_list_activeInput.value = tmpValue; - if(document.getElementById(ajax_list_activeInput.name + '_hidden'))document.getElementById(ajax_list_activeInput.name + '_hidden').value = inputObj.id; - ajax_options_hide(); - } - - function ajax_options_hide() - { - ajax_optionDiv.style.display='none'; - if(ajax_optionDiv_iframe)ajax_optionDiv_iframe.style.display='none'; - } - - function ajax_options_rollOverActiveItem(item,fromKeyBoard) - { - if(ajax_list_activeItem)ajax_list_activeItem.className='optionDiv'; - item.className='optionDivSelected'; - ajax_list_activeItem = item; - - if(fromKeyBoard){ - if(ajax_list_activeItem.offsetTop>ajax_optionDiv.offsetHeight){ - ajax_optionDiv.scrollTop = ajax_list_activeItem.offsetTop - ajax_optionDiv.offsetHeight + ajax_list_activeItem.offsetHeight + 2 ; - } - if(ajax_list_activeItem.offsetTop