From 7d0eab6bb81d3010130879061ea00542071f5b76 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 1 Feb 2010 13:43:45 +0000 Subject: [PATCH] Updated toggle method -We should replace GOsa_toggle with Protype style $(element).toggle. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15543 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/include/gosa.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/gosa-core/html/include/gosa.js b/gosa-core/html/include/gosa.js index db3079b7c..eec7609e9 100644 --- a/gosa-core/html/include/gosa.js +++ b/gosa-core/html/include/gosa.js @@ -222,18 +222,7 @@ if (Prototype.Browser.Gecko){ } function GOsa_toggle(element) { - if (Prototype.Browser.Gecko) - document.poppedLayer = document.getElementById(element); - else if (Prototype.Browser.IE) - document.poppedLayer = document.all[element]; - else - document.poppedLayer = document.layers[element]; - - if (document.poppedLayer.style.visibility == "visible") { - $(element).hide(); - } else { - $(element).show(); - } + $(element).toggle(); } function popup(target, name) { -- 2.30.2