From 1f55abcdfee5b71da5859c8f8c36c2d676ec7430 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 1 Feb 2010 08:03:38 +0000 Subject: [PATCH] Removed hide/show git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15507 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/include/gosa.js | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/gosa-core/html/include/gosa.js b/gosa-core/html/include/gosa.js index ac561233f..db3079b7c 100644 --- a/gosa-core/html/include/gosa.js +++ b/gosa-core/html/include/gosa.js @@ -230,9 +230,9 @@ function GOsa_toggle(element) { document.poppedLayer = document.layers[element]; if (document.poppedLayer.style.visibility == "visible") { - hide (element); + $(element).hide(); } else { - show (element); + $(element).show(); } } @@ -260,11 +260,11 @@ function divGOsa_toggle(element) { cell= document.getElementById(cellname); if (document.poppedLayer.style.visibility == "visible") { - hide (element); + $(element).hide(); cell.style.height="0px"; document.poppedLayer.style.height="0px"; } else { - show (element); + $(element).show(); document.poppedLayer.style.height=""; if(document.defaultView) { cell.style.height=document.defaultView.getComputedStyle(document.poppedLayer,"").getPropertyValue('height'); @@ -274,12 +274,12 @@ function divGOsa_toggle(element) { document.poppedLayer = document.getElementById(element); cell= document.getElementById(cellname); if (document.poppedLayer.style.visibility == "visible") { - hide (element); + $(element).hide(); cell.style.height="0px"; document.poppedLayer.style.height="0px"; document.poppedLayer.style.position="absolute"; } else { - show (element); + $(element).show(); cell.style.height=""; document.poppedLayer.style.height=""; document.poppedLayer.style.position="relative"; @@ -404,7 +404,7 @@ function next_msg_dialog() if(cur_id != ""){ ele = document.getElementById('e_layer' + cur_id); ele.onmousemove = ""; - hide('e_layer' + cur_id); + $('e_layer' + cur_id).hide(); document.getElementById('closed_msg_dialogs').value += "," + cur_id; document.getElementById('current_msg_dialogs').value= ""; } @@ -553,16 +553,6 @@ function move_div_by_cursor(e) } -function hide(element) { - document.poppedLayer = document.getElementById(element); - document.poppedLayer.style.visibility = "hidden"; -} - -function show(element) { - document.poppedLayer = document.getElementById(element); - document.poppedLayer.style.visibility = "visible"; -} - // Global storage for baseSelector timer var rtimer; -- 2.30.2