From fc31972d732c350fab221255868a9e5ab22e8179 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Dec 2007 14:04:39 +0000 Subject: [PATCH] Udpated msg dialog. - We have to drag the dialogs by clicking the title now. This makes it easier to copy&paste text from the dialogs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8001 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/include/focus.js | 3 ++- ihtml/themes/default/msg_dialog.tpl | 28 ++++++++++++++++++++++++---- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/html/include/focus.js b/html/include/focus.js index 83d8ac49d..129e61625 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -491,11 +491,12 @@ function next_msg_dialog() tmp = tmp.replace(/,$/g,""); if(i_id != ""){ ele = document.getElementById('e_layer' + i_id); + ele3 = document.getElementById('e_layerTitle' + i_id); ele.style.display= 'block' ; document.getElementById('pending_msg_dialogs').value= tmp; document.getElementById('current_msg_dialogs').value= i_id; ele2 = document.getElementById('e_layer2') ; - ele.onmousedown = start_move_div_by_cursor; + ele3.onmousedown = start_move_div_by_cursor; ele2.onmouseup = stop_move_div_by_cursor; ele2.onmousemove = move_div_by_cursor; }else{ diff --git a/ihtml/themes/default/msg_dialog.tpl b/ihtml/themes/default/msg_dialog.tpl index 9d7fb391b..fafbed4bb 100644 --- a/ihtml/themes/default/msg_dialog.tpl +++ b/ihtml/themes/default/msg_dialog.tpl @@ -54,10 +54,20 @@ left:200px; top:200px; background-color:white; - padding:5px; border:5px solid red; z-index:150; position:absolute;'> +
+   {$s_Title} +
+
@@ -70,7 +80,6 @@ {/if} -

{$s_Title}

{$s_Message}

@@ -104,11 +113,23 @@ left:200px; top:200px; background-color:white; - padding:5px; border:5px solid red; z-index:150; display:none; position:absolute;'> + +
+   {$s_Title} +
+
+
@@ -121,7 +142,6 @@ {/if} -

{$s_Title}

{$s_Message}

-- 2.30.2