@@ -24,6 +24,12 @@ window.onload = function () { // wait for load in a dumb way because B-0
24
24
throw err
25
25
}
26
26
27
+ function showSuccess ( msg ) {
28
+ $ ( '<div class="bs-callout bs-callout-info">' +
29
+ '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>' + msg +
30
+ '</div>' ) . insertAfter ( '.bs-customize-download' )
31
+ }
32
+
27
33
function showCallout ( msg , showUpTop ) {
28
34
var callout = $ ( '<div class="bs-callout bs-callout-danger">' +
29
35
'<h4>Attention!</h4>' +
@@ -60,10 +66,13 @@ window.onload = function () { // wait for load in a dumb way because B-0
60
66
data : JSON . stringify ( data )
61
67
} )
62
68
. success ( function ( result ) {
69
+ var gistUrl = result . html_url ;
63
70
var origin = window . location . protocol + '//' + window . location . host
64
- var newUrl = origin + window . location . pathname + '?id=' + result . id
65
- history . replaceState ( false , document . title , newUrl )
66
- callback ( result . html_url , newUrl )
71
+ var customizerUrl = origin + window . location . pathname + '?id=' + result . id
72
+ showSuccess ( '<strong>Success!</strong> Your configuration has been saved to <a href="' + gistUrl + '">' + gistUrl + '</a> ' +
73
+ 'and can be revisited here at <a href="' + customizerUrl + '">' + customizerUrl + '</a> for further customization.' )
74
+ history . replaceState ( false , document . title , customizerUrl )
75
+ callback ( gistUrl , customizerUrl )
67
76
} )
68
77
. error ( function ( err ) {
69
78
try {
0 commit comments