[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/13: HtmlInput::anchor, needs a javascript:
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/13: HtmlInput::anchor, needs a javascript:void(0) |
Date: |
Wed, 11 Nov 2020 10:23:40 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit ab54f85fcdd54e675ede9297248bde160eb97f1a
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Nov 8 23:39:33 2020 +0100
HtmlInput::anchor, needs a javascript:void(0)
---
include/lib/html_input.class.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 0cbbabb..cf3978c 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -908,18 +908,19 @@ class HtmlInput
* @param string $p_url url
* @param string $p_js javascript
* @param string $p_style is the visuable effect (class, style...)
+ * @param string $p_title Title
*/
static function anchor($p_text, $p_url="", $p_js="",
- $p_style=' class="line" ')
+ $p_style=' class="line" ',$p_title="click")
{
if ($p_js!="")
{
- $p_url='href="#"';
+ $p_url='href="javascript:void(0)"';
} else {
$p_url=sprintf('href="%s"',$p_url);
}
- $str=sprintf('<a %s %s %s>%s</a>', $p_style, $p_url, $p_js, $p_text);
+ $str=sprintf('<a %s %s %s title="%s">%s</a>', $p_style, $p_url, $p_js,
$p_title,$p_text);
return $str;
}
- [Noalyss-commit] [noalyss] branch master updated (9d5d626 -> 8bd9ba4), Dany De Bontridder, 2020/11/11
- [Noalyss-commit] [noalyss] 02/13: HtmlInput::anchor, needs a javascript:void(0),
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 01/13: Cosmetic : use H2, Dany De Bontridder, 2020/11/11
- [Noalyss-commit] [noalyss] 03/13: Compatibility edge, Dany De Bontridder, 2020/11/11
- [Noalyss-commit] [noalyss] 04/13: Minor : remove warning and typo, Dany De Bontridder, 2020/11/11
- [Noalyss-commit] [noalyss] 05/13: Follow_Up : other card, change presentation, use a button instead of displaying a lot of cells , one per card, the button calls a dialog box with the list of other cards, Dany De Bontridder, 2020/11/11
- [Noalyss-commit] [noalyss] 11/13: Bug : error end-of-file, Dany De Bontridder, 2020/11/11
- [Noalyss-commit] [noalyss] 09/13: Export FollowUp option doesn't work, Dany De Bontridder, 2020/11/11
- [Noalyss-commit] [noalyss] 12/13: Bug : followup detail operation: price Purchase or Sale, amount_from_type lost when searching , because exists in double, Dany De Bontridder, 2020/11/11
- [Noalyss-commit] [noalyss] 08/13: Tag sorted alphabetically, Dany De Bontridder, 2020/11/11
- [Noalyss-commit] [noalyss] 06/13: Tag : add color to tags, Dany De Bontridder, 2020/11/11
- [Noalyss-commit] [noalyss] 10/13: Bug : display unused other card options, Dany De Bontridder, 2020/11/11