From bdbe28b3ff853be81db500e2d0ba4672f794bcba Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 15 Jan 2013 18:42:00 +0000 Subject: [PATCH] focus password field --- lam/templates/config/profmanage.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lam/templates/config/profmanage.php b/lam/templates/config/profmanage.php index b873057c..e6baac8e 100644 --- a/lam/templates/config/profmanage.php +++ b/lam/templates/config/profmanage.php @@ -250,7 +250,7 @@ $profileNewPwd2->setFieldSize(15); $container->addElement($profileNewPwd2, true); $newProfileButton = new htmlButton('btnAddProfile', _('Add')); $newProfileButton->setOnClick("jQuery('#action').val('add');showConfirmationDialog('" . _("Add profile") . "', '" . - _('Ok') . "', '" . _('Cancel') . "', 'passwordDialogDiv', 'profileForm', null);"); + _('Ok') . "', '" . _('Cancel') . "', 'passwordDialogDiv', 'profileForm', null); document.getElementById('passwd').focus();"); $container->addElement($newProfileButton, true); $container->addElement($topicSpacer, true); @@ -262,7 +262,7 @@ $oldProfileInput->setFieldSize(15); $container->addElement($oldProfileInput, true); $renameProfileButton = new htmlButton('btnRenameProfile', _('Rename')); $renameProfileButton->setOnClick("jQuery('#action').val('rename');showConfirmationDialog('" . _("Rename profile") . "', '" . - _('Ok') . "', '" . _('Cancel') . "', 'passwordDialogDiv', 'profileForm', null);"); + _('Ok') . "', '" . _('Cancel') . "', 'passwordDialogDiv', 'profileForm', null); document.getElementById('passwd').focus();"); $container->addElement($renameProfileButton, true); $container->addElement($topicSpacer, true); @@ -271,7 +271,7 @@ $container->addElement(new htmlSubTitle(_("Delete profile")), true); $container->addElement(new htmlTableExtendedSelect('delfilename', $files, array(), _('Profile name'), '232'), true); $deleteProfileButton = new htmlButton('btnDeleteProfile', _('Delete')); $deleteProfileButton->setOnClick("jQuery('#action').val('delete');showConfirmationDialog('" . _("Delete profile") . "', '" . - _('Ok') . "', '" . _('Cancel') . "', 'passwordDialogDiv', 'profileForm', null);"); + _('Ok') . "', '" . _('Cancel') . "', 'passwordDialogDiv', 'profileForm', null); document.getElementById('passwd').focus();"); $container->addElement($deleteProfileButton, true); $container->addElement($topicSpacer, true); @@ -288,7 +288,7 @@ $profileSetPwd2->setFieldSize(15); $container->addElement($profileSetPwd2, true); $setPasswordProfileButton = new htmlButton('btnSetPasswordProfile', _('Set profile password')); $setPasswordProfileButton->setOnClick("jQuery('#action').val('setpass');showConfirmationDialog('" . _("Set profile password") . "', '" . - _('Ok') . "', '" . _('Cancel') . "', 'passwordDialogDiv', 'profileForm', null);"); + _('Ok') . "', '" . _('Cancel') . "', 'passwordDialogDiv', 'profileForm', null); document.getElementById('passwd').focus();"); $container->addElement($setPasswordProfileButton, true); $container->addElement($topicSpacer, true); @@ -299,7 +299,7 @@ $container->addElement(new htmlSubTitle(_("Change default profile")), true); $container->addElement(new htmlTableExtendedSelect('defaultfilename', $files, array($defaultprofile), _('Profile name'), '234'), true); $defaultProfileButton = new htmlButton('btnDefaultProfile', _('Ok')); $defaultProfileButton->setOnClick("jQuery('#action').val('setdefault');showConfirmationDialog('" . _("Change default profile") . "', '" . - _('Ok') . "', '" . _('Cancel') . "', 'passwordDialogDiv', 'profileForm', null);"); + _('Ok') . "', '" . _('Cancel') . "', 'passwordDialogDiv', 'profileForm', null); document.getElementById('passwd').focus();"); $container->addElement($defaultProfileButton, true); $container->addElement($topicSpacer, true);