summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogshareelistview.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/sharedialogshareelistview.js')
-rw-r--r--core/js/sharedialogshareelistview.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index dda2fe949ac..f078ab8a06b 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -37,7 +37,7 @@
' {{/if}}' +
' {{#unless isRemoteShare}}' +
' <a href="#" class="showCruds"><img class="svg" alt="{{crudsLabel}}" src="{{triangleSImage}}"/></a>' +
- ' <div class="cruds" class="hidden">' +
+ ' <div class="cruds hidden">' +
' {{#if createPermissionPossible}}' +
' <label><input id="canCreate-{{shareWith}}" type="checkbox" name="create" class="permissions" {{#if hasCreatePermission}}checked="checked"{{/if}} data-permissions="{{createPermission}}"/>{{createPermissionLabel}}</label>' +
' {{/if}}' +
@@ -214,6 +214,7 @@
var view = this;
this.$el.find('.unshare').click(function() { view.onUnshare(this, view); });
+ this.$el.find('.showCruds').click(this.onCrudsToggle);
return this;
},
@@ -245,6 +246,11 @@
view.model.removeShare(shareType, shareWith);
return false;
+ },
+
+ onCrudsToggle: function() {
+ $(this).siblings('.cruds').toggleClass('hidden');
+ return false;
}
});