diff options
Diffstat (limited to 'plugins/CoreHome/javascripts/corehome.js')
-rwxr-xr-x | plugins/CoreHome/javascripts/corehome.js | 20 |
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 +}); |