You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/08/17 15:32:50 UTC

[03/20] airavata-php-gateway git commit: changed AJAX call to POST and added resourceId field

changed AJAX call to POST and added resourceId field


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/84f160ae
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/84f160ae
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/84f160ae

Branch: refs/heads/develop
Commit: 84f160ae22b9c65b590559fbf5f91e790a49e3f5
Parents: 4f5f026
Author: Jeff Kinnison <je...@gmail.com>
Authored: Thu Aug 4 12:30:46 2016 -0400
Committer: Jeff Kinnison <je...@gmail.com>
Committed: Thu Aug 4 12:30:46 2016 -0400

----------------------------------------------------------------------
 public/js/sharing/share.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/84f160ae/public/js/sharing/share.js
----------------------------------------------------------------------
diff --git a/public/js/sharing/share.js b/public/js/sharing/share.js
index 40420c6..7b21297 100755
--- a/public/js/sharing/share.js
+++ b/public/js/sharing/share.js
@@ -97,8 +97,9 @@ $(function() {
             ajax_data = $(e.target).data();
 
             $.ajax({
-                url: url,
-                data: {},
+                url: ajax_data.url,
+                method: 'post',
+                data: {resourceId: ajax_data.resourceId},
                 dataType: "json",
                 error: function(xhr, status, error) {
                     $('#shared-users').addClass('text-align-center').text("Unable to load users from Airavata server.");