From a53bfa2dc9c8bb54885868b8d7966a629f4a60c1 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 20 Sep 2007 07:03:54 +0000 Subject: [PATCH] Updated pwd handling. Moved functions to function.inc Removed require_once from class passwordMethod and replaced it with $class_mapping git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7342 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/include/focus.js | 47 +++-- html/password.php | 2 +- ihtml/themes/default/msg_dialog.tpl | 1 + include/class_location.inc | 2 +- include/class_password-methods.inc | 182 ++------------------ include/functions.inc | 156 +++++++++++++++++ plugins/personal/mail/class_mailAccount.inc | 6 +- setup/class_setupStep_Config1.inc | 2 +- setup/class_setupStep_Migrate.inc | 2 +- 9 files changed, 203 insertions(+), 197 deletions(-) diff --git a/html/include/focus.js b/html/include/focus.js index 3f832476f..a5452beb6 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -460,6 +460,8 @@ function next_msg_dialog() if(document.getElementById('current_msg_dialogs')){ var cur_id = document.getElementById('current_msg_dialogs').value; if(cur_id != ""){ + var ele = document.getElementById('e_layer2' + cur_id); + ele.onmousemove = ""; hide('e_layer2' + cur_id); document.getElementById('closed_msg_dialogs').value += "," + cur_id; document.getElementById('current_msg_dialogs').value= ""; @@ -480,31 +482,38 @@ function next_msg_dialog() ele.style.display= 'block' ; document.getElementById('pending_msg_dialogs').value= tmp; document.getElementById('current_msg_dialogs').value= i_id; - + ele.onmousedown = start_move_div_by_cursor; + ele.onmouseup = stop_move_div_by_cursor; + ele.onmousemove = move_div_by_cursor; } } } } +var enable_move_div_by_cursor = false; +function start_move_div_by_cursor() +{ + enable_move_div_by_cursor = true; +} +function stop_move_div_by_cursor() +{ + enable_move_div_by_cursor = false; +} - - - - - - - - - - - - - - - - - - +function move_div_by_cursor(e) +{ + if(enable_move_div_by_cursor){ + if(document.getElementById('current_msg_dialogs')){ + var cur_id = document.getElementById('current_msg_dialogs').value; + if(cur_id != ""){ + var ele = document.getElementById('e_layer2' + cur_id); + ele.style.position = "absolute"; + ele.style.top = (e.screenY - 100) + "px"; + ele.style.left = (e.screenX -50)+ "px"; + } + } + } +} // vim:ts=2:syntax diff --git a/html/password.php b/html/password.php index 29e1edbf2..d04b92aa0 100644 --- a/html/password.php +++ b/html/password.php @@ -152,7 +152,7 @@ $method= $config->current['HASH']; if (isset($_GET['method'])){ $method= validate($_GET['method']); $tmp = new passwordMethod($config); - $available = $tmp->get_available_methods_if_not_loaded(); + $available = $tmp->get_available_methods(); if (!isset($available[$method])){ echo _("Error: Password method not available!"); exit; diff --git a/ihtml/themes/default/msg_dialog.tpl b/ihtml/themes/default/msg_dialog.tpl index 85246df89..586a7b594 100644 --- a/ihtml/themes/default/msg_dialog.tpl +++ b/ihtml/themes/default/msg_dialog.tpl @@ -29,6 +29,7 @@ {else}