From 2e69dfa8c1679238579ef6f5ec85deb755e4fb6d Mon Sep 17 00:00:00 2001 From: Bardi Harborow Date: Tue, 4 Oct 2016 02:55:59 +1000 Subject: Fix broken/redirected links, moving to HTTPS where possible. (#20557) --- docs/assets/js/src/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/assets/js/src') diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 444b69b5c..4f72ef13b 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -3,7 +3,7 @@ // ++++++++++++++++++++++++++++++++++++++++++ /*! - * JavaScript for Bootstrap's docs (http://getbootstrap.com) + * JavaScript for Bootstrap's docs (https://getbootstrap.com) * Copyright 2011-2016 The Bootstrap Authors * Copyright 2011-2016 Twitter, Inc. * Licensed under the Creative Commons Attribution 3.0 Unported License. For -- cgit v1.2.3 From a6f54889fdf4140d4892cbf6cdb08573475f52a8 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 28 Nov 2016 13:10:19 -0800 Subject: Replacement for #20602 (#21236) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- docs/assets/js/src/application.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/assets/js/src') 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) -- cgit v1.2.3 From fe4cd38877cde677de0c63c7fb109c4e4924c75e Mon Sep 17 00:00:00 2001 From: Bardi Harborow Date: Mon, 28 Nov 2016 14:52:55 +1100 Subject: Change scope of docs anchor preventDefault to include modals. --- docs/assets/js/src/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/assets/js/src') diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 9588d5409..529b0c1b8 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -33,7 +33,7 @@ $('.bd-example-indeterminate [type="checkbox"]').prop('indeterminate', true) // Disable empty links in docs examples - $('.bd-example [href="#"]').click(function (e) { + $('.bd-content [href="#"]').click(function (e) { e.preventDefault() }) -- cgit v1.2.3