diff --git a/docs/assets/js/_src/customizer.js b/docs/assets/js/_src/customizer.js index 033e1c9c91..f1e209772b 100644 --- a/docs/assets/js/_src/customizer.js +++ b/docs/assets/js/_src/customizer.js @@ -24,6 +24,12 @@ window.onload = function () { // wait for load in a dumb way because B-0 throw err } + function showSuccess(msg) { + $('
' + + '' + msg + + '
').insertAfter('.bs-customize-download') + } + function showCallout(msg, showUpTop) { var callout = $('
' + '

Attention!

' + @@ -60,10 +66,13 @@ window.onload = function () { // wait for load in a dumb way because B-0 data: JSON.stringify(data) }) .success(function (result) { + var gistUrl = result.html_url; var origin = window.location.protocol + '//' + window.location.host - var newUrl = origin + window.location.pathname + '?id=' + result.id - history.replaceState(false, document.title, newUrl) - callback(result.html_url, newUrl) + var customizerUrl = origin + window.location.pathname + '?id=' + result.id + showSuccess('Success! Your configuration has been saved to ' + gistUrl + ' ' + + 'and can be revisited here at ' + customizerUrl + ' for further customization.') + history.replaceState(false, document.title, customizerUrl) + callback(gistUrl, customizerUrl) }) .error(function (err) { try {