You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/01/10 16:06:02 UTC
airavata-php-gateway git commit: AIRAVATA-2263 Block sharing modal
while loading users
Repository: airavata-php-gateway
Updated Branches:
refs/heads/develop f4356c5f4 -> acfed2f44
AIRAVATA-2263 Block sharing modal while loading users
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/acfed2f4
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/acfed2f4
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/acfed2f4
Branch: refs/heads/develop
Commit: acfed2f441a9a441ea3194022f3a1d8fc822e88e
Parents: f4356c5
Author: Marcus Christie <ma...@apache.org>
Authored: Tue Jan 10 11:05:18 2017 -0500
Committer: Marcus Christie <ma...@apache.org>
Committed: Tue Jan 10 11:05:18 2017 -0500
----------------------------------------------------------------------
public/js/sharing/share.js | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/acfed2f4/public/js/sharing/share.js
----------------------------------------------------------------------
diff --git a/public/js/sharing/share.js b/public/js/sharing/share.js
index c99b833..bbea0d9 100755
--- a/public/js/sharing/share.js
+++ b/public/js/sharing/share.js
@@ -113,6 +113,10 @@ $(function() {
$('#share-box-users').addClass('text-align-center').text('Loading user list');
+ // Block the whole modal while user list is loading. Reason: if user
+ // tries to remove a shared user, loading of user list currently
+ // overwrites that information.
+ $('#share-box .modal-dialog').addClass('modal-spinner');
$.ajax({
url: ajax_data.url,
method: 'get',
@@ -137,6 +141,10 @@ $(function() {
$users.append($user);
}
}
+ },
+ complete: function(){
+
+ $('#share-box .modal-dialog').removeClass('modal-spinner');
}
});
}