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/07/11 20:17:36 UTC
airavata-php-gateway git commit: edit thumbnail state changes
Repository: airavata-php-gateway
Updated Branches:
refs/heads/grouper-integration dc4b0be1c -> 1a0c25126
edit thumbnail state changes
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/1a0c2512
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/1a0c2512
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/1a0c2512
Branch: refs/heads/grouper-integration
Commit: 1a0c25126007956963eaac7f873a3de8ce2a0c2d
Parents: dc4b0be
Author: Jeff Kinnison <je...@gmail.com>
Authored: Mon Jul 11 15:48:17 2016 -0400
Committer: Jeff Kinnison <je...@gmail.com>
Committed: Mon Jul 11 15:48:17 2016 -0400
----------------------------------------------------------------------
public/js/sharing/sharing_utils.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/1a0c2512/public/js/sharing/sharing_utils.js
----------------------------------------------------------------------
diff --git a/public/js/sharing/sharing_utils.js b/public/js/sharing/sharing_utils.js
index 46bee1b..3d5ddb9 100644
--- a/public/js/sharing/sharing_utils.js
+++ b/public/js/sharing/sharing_utils.js
@@ -70,7 +70,7 @@ var changeShareState = function($target) {
if ($target.hasClass('share-box-users-item')) {
console.log("Sharing");
$target.find('.sharing-thumbnail-access').val('1').prop("disabled", false).show();
- data.access.read = true;
+ data.currentaccess.read = true;
$target.data(data);
$target.find('.sharing-thumbnail-unshare').show();
$target.detach().prependTo('#share-box-share').show();
@@ -79,8 +79,8 @@ var changeShareState = function($target) {
else if ($target.hasClass('share-box-share-item')) {
console.log("Revoking share");
$target.find('select').val('0').prop("disabled", true).hide();
- data.access.read = true;
- data.access.write = true;
+ data.currentaccess.read = true;
+ data.currentaccess.write = true;
$target.data(data);
$target.find('.sharing-thumbnail-unshare').hide();
$target.detach().appendTo('#share-box-users');