This commit is contained in:
Roland Gruber 2011-08-28 11:26:51 +00:00
parent 62504a4418
commit 8f6376cfd6
1 changed files with 5 additions and 1 deletions

View File

@ -965,6 +965,7 @@ class accountContainer {
private function printPasswordPromt() {
echo "<div id=\"passwordDialog\" class=\"hidden\">\n";
echo '<div id="passwordDialogMessageArea"></div>';
$printContainer = false;
$container = new htmlTable();
// password fields
$container->addElement(new htmlOutputText(_('Password')));
@ -981,6 +982,7 @@ class accountContainer {
$moduleContainer = new htmlTable();
foreach ($this->module as $name => $module) {
if (($module instanceof passwordService) && $module->managesPasswordAttributes()) {
$printContainer = true;
$moduleContainer->addElement(new htmlInputCheckbox('password_cb_' . $name, true));
$buttonImage = $module->getIcon();
if ($buttonImage != null) {
@ -995,7 +997,9 @@ class accountContainer {
$container->addElement(new htmlSpacer(null, '10px'), true);
// generate HTML
$tabindex = 2000;
if ($printContainer) {
parseHtml(null, $container, array(), false, $tabindex, $this->type);
}
echo "</div>\n";
}