Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryyee99 <35312666+ryyee99@users.noreply.github.com>2018-01-18 23:33:38 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2018-01-18 23:33:38 +0300
commit69352ce8862db4eba0ba165c13228f5a42169db0 (patch)
tree661d25a0c101ed0660324226e5e612a876f187cb /plugins/CoreHome/javascripts
parent5351fdc7e8214d3c76c94b8a74774b3b7d2e3da7 (diff)
Rough way of adding the page up and page down shortcuts to help list (#12461)
* Rough way of adding page up & down shortcut to help list * To allow Macs to display different shortcut buttons
Diffstat (limited to 'plugins/CoreHome/javascripts')
-rwxr-xr-xplugins/CoreHome/javascripts/corehome.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/plugins/CoreHome/javascripts/corehome.js b/plugins/CoreHome/javascripts/corehome.js
index 76f6554573..3ae506f777 100755
--- a/plugins/CoreHome/javascripts/corehome.js
+++ b/plugins/CoreHome/javascripts/corehome.js
@@ -111,6 +111,24 @@ $( document ).ready(function() {
}
});
+ var isMac = navigator.userAgent.indexOf('Mac OS X') != -1;
+
+ if (isMac) {
+ list.append($('<dt />').text(_pk_translate("CoreHome_MacPageUp")).css('width','auto'));
+ } else {
+ list.append($('<dt />').text(_pk_translate("CoreHome_HomeShortcut")).css('width','auto'));
+ }
+
+ list.append($('<dd />').text(_pk_translate('CoreHome_PageUpShortcutDescription')));
+
+ if (isMac) {
+ list.append($('<dt />').text(_pk_translate("CoreHome_MacPageDown")).css('width','auto'));
+ } else {
+ list.append($('<dt />').text(_pk_translate("CoreHome_EndShortcut")).css('width','auto'));
+ }
+
+ list.append($('<dd />').text(_pk_translate('CoreHome_PageDownShortcutDescription')));
+
piwikHelper.modalConfirm('#shortcuthelp');
});
-}); \ No newline at end of file
+});