From 1f4e1f09b639d49ebe818fd2b4d6e98f78ef2d38 Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Sun, 15 May 2016 12:22:51 +0800 Subject: Add some reminder for snippet before modal ajax --- public/js/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index 0193b6bc..ea9194e6 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1181,6 +1181,7 @@ ui.toolbar.export.googleDrive.click(function (e) { ui.toolbar.export.gist.attr("href", noteurl + "/gist"); //export to snippet ui.toolbar.export.snippet.click(function() { + ui.spinner.show(); $.get(serverurl + '/gitlab') .success(function (data) { $("#snippetExportModalAccessToken").val(data.accesstoken); @@ -1209,7 +1210,7 @@ ui.toolbar.export.snippet.click(function() { showMessageModal(' Import from Snippet', 'Unable to fetch gitlab parameters :(', '', '', false); }) .complete(function () { - //na + ui.spinner.hide(); }); return false; }); @@ -1267,6 +1268,7 @@ ui.toolbar.import.gist.click(function () { }); //import from snippet ui.toolbar.import.snippet.click(function () { + ui.spinner.show(); $.get(serverurl + '/gitlab') .success(function (data) { $("#snippetImportModalAccessToken").val(data.accesstoken); -- cgit v1.2.3