diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-03-05 18:56:07 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-03-05 18:56:07 +0000 |
commit | 291029f4f780c7a4c05469201734c0fd4d7e902a (patch) | |
tree | 0d48e66abb6933e92f0e2d9039640b69a078d26c /UI/payments/js | |
parent | f5a609f4c72219b7794851d1b094666fae651b55 (diff) |
Correcting javascript directory name
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2100 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI/payments/js')
-rw-r--r-- | UI/payments/js/maximize_minimize.js | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/UI/payments/js/maximize_minimize.js b/UI/payments/js/maximize_minimize.js deleted file mode 100644 index 07348454..00000000 --- a/UI/payments/js/maximize_minimize.js +++ /dev/null @@ -1,77 +0,0 @@ -/****************************************************** - CopyLeft DAVID MORA RODRIGUEZ - CRISTIAN CEBALLOS - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -********************************************************/ - -// This function should not be called directly - function maximize(element) { - try { - var obj = document.getElementById(element); - obj.style.visibility = 'visible'; - obj.style.height = "60px"; - - } - catch(err) { alert("ERROR ON maximize: "+err); } - - - } -// This funciton should not be called directly - function minimize(element) { - try { - var obj2 = document.getElementById(element); - obj2.style.visibility = 'hidden'; - obj2.style.height = '0px'; - } - catch(err) { alert("ERROR ON minimize: " + err); } - } -/* This is the handler for maximize_minimize, it is intended to be called - directly this will call maximize and minimize */ - function maximize_minimize(element, state, img, plusimage, minusimage) { - try { - var obj = document.getElementById(element); - var obj3 = document.getElementById(state); - if ( obj.style.visibility == 'hidden' ) { - img.src = minusimage; - maximize(element); - obj3.value = 'visible'; - } else { - img.src = plusimage; - minimize(element); - obj3.value ='hidden'; - } - } catch (err) { alert("ERROR ON maximize_minimize: " + err);} - } - -/* This function gets the form state and set it invisible */ -/* Container is the element that contains the tagname elements, all of them must match the same criteria */ - function maximize_minimize_on_load (container, plusimage, minusimage) { - - var table = document.getElementById(container); - var cells = table.getElementsByTagName("input"); - var regex = new RegExp("topaystate_"); - try{ - for (var i = 0; i < cells.length; i++) { - - var extra_info = cells[i].id.replace(regex,"div_topay_"); - var img = document.getElementById(cells[i].id.replace(regex,"button_topay_")); - if (cells[i].value == '' || cells[i].value == "hidden") { - maximize_minimize(extra_info , cells[i].id, img, plusimage, minusimage); - } - } - } catch (err) { alert("ERROR ON maximize_minimize_on_load: " + err) } -} - |