From 5996a8abcf12336586cee345180203dd1500c92f Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 20 Apr 2018 15:18:30 -0700 Subject: Rewrite tooltips code without jQuery --- app/Helper/AppHelper.php | 10 ++++++++++ app/Helper/TextHelper.php | 12 ------------ 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'app/Helper') diff --git a/app/Helper/AppHelper.php b/app/Helper/AppHelper.php index 3a0a2428..63ebac98 100644 --- a/app/Helper/AppHelper.php +++ b/app/Helper/AppHelper.php @@ -12,6 +12,16 @@ use Kanboard\Core\Base; */ class AppHelper extends Base { + public function tooltipMarkdown($markdownText, $icon = 'fa-info-circle') + { + return ''; + } + + public function tooltipLink($label, $link) + { + return ''.$label.''; + } + public function getToken() { return $this->token; diff --git a/app/Helper/TextHelper.php b/app/Helper/TextHelper.php index 698bef6d..910130d6 100644 --- a/app/Helper/TextHelper.php +++ b/app/Helper/TextHelper.php @@ -51,18 +51,6 @@ class TextHelper extends Base return $parser->text($text); } - /** - * Escape Markdown text that need to be stored in HTML attribute - * - * @access public - * @param string $text - * @return mixed - */ - public function markdownAttribute($text) - { - return htmlentities($this->markdown($text), ENT_QUOTES, 'UTF-8'); - } - /** * Format a file size * -- cgit v1.2.3