From fafe5770031ebfe3119b3541b259e25e82bf6fc3 Mon Sep 17 00:00:00 2001 From: Panos Terzis Date: Fri, 10 Jul 2015 11:48:09 +0100 Subject: [PATCH] cobweb-eu/cobweb#160: added loading icon --- src/js/former/jquery.former.core.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/former/jquery.former.core.js b/src/js/former/jquery.former.core.js index 15f8ebc..ecf197b 100644 --- a/src/js/former/jquery.former.core.js +++ b/src/js/former/jquery.former.core.js @@ -396,7 +396,6 @@ else{ giveFeedback("You need to refresh your page. The session with the provider has problems!"); } - loading(false); }); }; @@ -410,7 +409,6 @@ "userId": userId }; var bformer = this; - loading(true); pcapi.getItems(options).then(function(data){ var form_links = new Array(); var by_editor = new Array(); @@ -441,7 +439,6 @@ by_editor.push(''); } } - loading(false); } $('button').prop('disabled', false); @@ -474,6 +471,7 @@ if(bformer.options.publicEditor){ options.userId = config.pcapianonymous; } + loading(true); pcapi.getEditor(options).then(function(data){ bformer.appendExistingEditor(data, true, editorTitle); bformer.enableActionButtons(false, false, false);