fixed scrolling

This commit is contained in:
Roland Gruber 2018-05-12 09:22:23 +02:00
parent 35d580f217
commit ffaa7d5bac
1 changed files with 8 additions and 3 deletions

View File

@ -250,20 +250,25 @@ include '../../lib/adminHeader.inc';
$buttonGroup->addElement($exEditButton); $buttonGroup->addElement($exEditButton);
$deleteLink = new htmlLink(null, '#', '../../graphics/delete.png'); $deleteLink = new htmlLink(null, '#', '../../graphics/delete.png');
$deleteLink->setTitle(_('Delete')); $deleteLink->setTitle(_('Delete'));
$deleteLink->setOnClick("profileShowDeleteDialog('" . _('Delete') . "', '" . _('Ok') . "', '" . _('Cancel') . "', '" . $templateClass['typeId'] . "', '" . 'template_' . $templateClass['typeId'] . "');"); $deleteLink->setOnClick("profileShowDeleteDialog('" . _('Delete') . "', '" . _('Ok') . "', '" .
_('Cancel') . "', '" . $templateClass['typeId'] . "', '" . 'template_' .
$templateClass['typeId'] . "'); return false;");
$buttonGroup->addElement($deleteLink); $buttonGroup->addElement($deleteLink);
if (count($configProfiles) > 1) { if (count($configProfiles) > 1) {
$importLink = new htmlLink(null, '#', '../../graphics/import.png'); $importLink = new htmlLink(null, '#', '../../graphics/import.png');
$importLink->setTitle(_('Import PDF structures')); $importLink->setTitle(_('Import PDF structures'));
$importLink->setOnClick("showDistributionDialog('" . _("Import PDF structures") . "', '" . $importLink->setOnClick("showDistributionDialog('" . _("Import PDF structures") . "', '" .
_('Ok') . "', '" . _('Cancel') . "', '" . $templateClass['typeId'] . "', 'import');"); _('Ok') . "', '" . _('Cancel') . "', '" . $templateClass['typeId'] .
"', 'import'); return false;");
$buttonGroup->addElement($importLink); $buttonGroup->addElement($importLink);
} }
$exportLink = new htmlLink(null, '#', '../../graphics/export.png'); $exportLink = new htmlLink(null, '#', '../../graphics/export.png');
$exportLink->setTitle(_('Export PDF structure')); $exportLink->setTitle(_('Export PDF structure'));
$exportLink->setOnClick("showDistributionDialog('" . _("Export PDF structure") . "', '" . $exportLink->setOnClick("showDistributionDialog('" . _("Export PDF structure") . "', '" .
_('Ok') . "', '" . _('Cancel') . "', '" . $templateClass['typeId'] . "', 'export', '" . 'template_' . $templateClass['typeId'] . "', '" . $_SESSION['config']->getName() . "');"); _('Ok') . "', '" . _('Cancel') . "', '" . $templateClass['typeId'] .
"', 'export', '" . 'template_' . $templateClass['typeId'] . "', '" .
$_SESSION['config']->getName() . "'); return false;");
$buttonGroup->addElement($exportLink); $buttonGroup->addElement($exportLink);
$container->add($buttonGroup, 12, 4); $container->add($buttonGroup, 12, 4);
$container->addVerticalSpacer('1rem'); $container->addVerticalSpacer('1rem');