diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2022-01-10 06:47:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 06:47:05 +0300 |
commit | 67376ceaf0acafa7d721c5a3b9d8517cfc64c8b2 (patch) | |
tree | c130d9873d67eae4eb8a0740dbb1b11fb64239ba /plugins/CoreHome/angularjs/common | |
parent | dd0878327e5a0c8ca578507a571a68ecb5319215 (diff) |
[Vue] fixes #18578 better defaulting of date/period/segment in hash (#18591)
* remove unneeded file
* remove file from CoreHome.php
* fix #18578, do not add default hash params if no hash params being set
* better fix
* even better fix, take into account the params being changed to
* simpler fix, hash params will overwrite anyway no need to || them
* fix tests
Diffstat (limited to 'plugins/CoreHome/angularjs/common')
-rw-r--r-- | plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js b/plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js deleted file mode 100644 index 8b5b4dfc9d..0000000000 --- a/plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js +++ /dev/null @@ -1,49 +0,0 @@ -/*! - * Matomo - free/libre analytics platform - * - * @link https://matomo.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */ - - -(function () { - angular.module('piwikApp.directive').directive('piwikShowSensitiveData', piwikShowSensitiveData); - - function piwikShowSensitiveData(){ - return { - restrict: 'A', - link: function(scope, element, attr) { - - var sensitiveData = attr.piwikShowSensitiveData || (attr.text ? attr.text() : ''); - var showCharacters = attr.showCharacters || 6; - var clickElement = attr.clickElementSelector || element; - - var protectedData = ''; - if (showCharacters > 0) { - protectedData += sensitiveData.substr(0, showCharacters); - } - protectedData += sensitiveData.substr(showCharacters).replace(/./g, '*'); - element.html(protectedData); - - function onClickHandler(event) { - element.html(sensitiveData); - $(clickElement).css({ - cursor: '' - }); - $(clickElement).tooltip("destroy"); - } - - $(clickElement).tooltip({ - content: _pk_translate('CoreHome_ClickToSeeFullInformation'), - items: '*', - track: true - }); - - $(clickElement).one('click', onClickHandler); - $(clickElement).css({ - cursor: 'pointer' - }); - } - }; - } -})(); |