data attributes

This commit is contained in:
Roland Gruber 2020-01-10 20:05:06 +01:00
parent c29be12a9e
commit 3ac7ae668b
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
/* /*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2010 - 2019 Roland Gruber Copyright (C) 2010 - 2020 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -3392,7 +3392,7 @@ class htmlLink extends htmlElement {
if (sizeof($this->cssClasses) > 0) { if (sizeof($this->cssClasses) > 0) {
$classAttr = ' class="' . implode(' ', $this->cssClasses) . '"'; $classAttr = ' class="' . implode(' ', $this->cssClasses) . '"';
} }
echo '<a href="' . $this->target . '"' . $idAttr . $classAttr . $title . $targetWindow . $onClick . '>' . $image . $text . '</a>'; echo '<a href="' . $this->target . '"' . $idAttr . $classAttr . $title . $targetWindow . $onClick . $this->getDataAttributesAsString() . '>' . $image . $text . '</a>';
if ($this->showAsButton) { if ($this->showAsButton) {
echo '<script type="text/javascript">'; echo '<script type="text/javascript">';
echo ' jQuery(document).ready(function() {'; echo ' jQuery(document).ready(function() {';