From: hickert Date: Wed, 19 Sep 2007 09:35:32 +0000 (+0000) Subject: Added simple js handling to popup js dialogs, not finished yet X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0159adcf213142c3c728cdb86e97f4d1dff2d685;p=gosa.git Added simple js handling to popup js dialogs, not finished yet git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7325 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/include/focus.js b/html/include/focus.js index 615c211f9..57fbf0006 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -446,6 +446,62 @@ function focus_field() element.focus(); } } + + + +function next_msg_dialog() +{ + var s_pending = ""; + var a_pending = new Array(); + var i_id = 0; + var i = 0; + var tmp = ""; + + if(document.getElementById('current_msg_dialogs')){ + var cur_id = document.getElementById('current_msg_dialogs').value; + if(cur_id != ""){ + hide('e_layer2' + cur_id); + } + } + + if(document.getElementById('pending_msg_dialogs')){ + s_pending = document.getElementById('pending_msg_dialogs').value; + a_pending = s_pending.split(","); + if(a_pending.length){ + i_id = a_pending.pop(); + for (i = 0 ; i < a_pending.length; ++i){ + tmp = tmp + a_pending[i] + ','; + } + tmp = tmp.replace(/,$/g,""); + if(i_id != ""){ + var ele = document.getElementById('e_layer2' + i_id); + ele.style.display= 'block' ; + document.getElementById('pending_msg_dialogs').value= tmp; + document.getElementById('current_msg_dialogs').value= i_id; + } + } + } +} + + + + + + + + + + + + + + + + + + + + // vim:ts=2:syntax diff --git a/ihtml/themes/default/msg_dialog.tpl b/ihtml/themes/default/msg_dialog.tpl index 15f54bbea..57c1a7ff3 100644 --- a/ihtml/themes/default/msg_dialog.tpl +++ b/ihtml/themes/default/msg_dialog.tpl @@ -27,7 +27,9 @@ height:100%; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='images/opacity_black.png'); "> {else} -
+