diff options
| author | Mark Otto <[email protected]> | 2016-11-28 13:10:19 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-11-28 13:10:19 -0800 |
| commit | a6f54889fdf4140d4892cbf6cdb08573475f52a8 (patch) | |
| tree | 5fab35653e13596a50a558835364845bf15e44f5 /docs | |
| parent | 9338cf597045f14ecaaaf54090eea61b8d807a37 (diff) | |
| download | bootstrap-a6f54889fdf4140d4892cbf6cdb08573475f52a8.tar.xz bootstrap-a6f54889fdf4140d4892cbf6cdb08573475f52a8.zip | |
Replacement for #20602 (#21236)
* Fixed incorrect instruction: "Press ⌘ to copy"
It needed to be "Press ⌘C to copy"
* Updated to concatenate copy string
Updated copy command to concatenated string to prevent potential issues
* Updated the way the copy string concatenates
As per excellent suggestion by @tomlutzenberger
* Removed semicolon line endings
;P
* var not const or let
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/assets/js/src/application.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 4f72ef13b..9588d5409 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -73,7 +73,8 @@ }) clipboard.on('error', function (e) { - var fallbackMsg = /Mac/i.test(navigator.userAgent) ? 'Press \u2318 to copy' : 'Press Ctrl-C to copy' + var modifierKey = /Mac/i.test(navigator.userAgent) ? '\u2318' : 'Ctrl-' + var fallbackMsg = 'Press ' + modifierKey + 'C to copy' $(e.trigger) .attr('title', fallbackMsg) |
