Skip to content

Commit 1f4e1f0

Browse files
committed
Add some reminder for snippet before modal ajax
1 parent bdc3a29 commit 1f4e1f0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

public/js/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,7 @@ ui.toolbar.export.googleDrive.click(function (e) {
11811181
ui.toolbar.export.gist.attr("href", noteurl + "/gist");
11821182
//export to snippet
11831183
ui.toolbar.export.snippet.click(function() {
1184+
ui.spinner.show();
11841185
$.get(serverurl + '/gitlab')
11851186
.success(function (data) {
11861187
$("#snippetExportModalAccessToken").val(data.accesstoken);
@@ -1209,7 +1210,7 @@ ui.toolbar.export.snippet.click(function() {
12091210
showMessageModal('<i class="fa fa-gitlab"></i> Import from Snippet', 'Unable to fetch gitlab parameters :(', '', '', false);
12101211
})
12111212
.complete(function () {
1212-
//na
1213+
ui.spinner.hide();
12131214
});
12141215
return false;
12151216
});
@@ -1267,6 +1268,7 @@ ui.toolbar.import.gist.click(function () {
12671268
});
12681269
//import from snippet
12691270
ui.toolbar.import.snippet.click(function () {
1271+
ui.spinner.show();
12701272
$.get(serverurl + '/gitlab')
12711273
.success(function (data) {
12721274
$("#snippetImportModalAccessToken").val(data.accesstoken);

0 commit comments

Comments
 (0)