summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-03-30 17:03:04 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2017-04-07 15:43:59 +0200
commit3323d01db1eda016f6e4665ae094c85903a83856 (patch)
tree8845984a62b5bd0d7b27bdbcdc7325c9dc3ee6de /core
parent676a4c781a5ff16ea34259c2958521596efc89b1 (diff)
downloadnextcloud-server-3323d01db1eda016f6e4665ae094c85903a83856.tar.gz
nextcloud-server-3323d01db1eda016f6e4665ae094c85903a83856.zip
update unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogshareelistview.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index 3c234f54665..573d5949118 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -510,7 +510,7 @@
passwordField.attr('value', '');
passwordField.attr('placeholder', PASSWORD_PLACEHOLDER_MESSAGE);
} else {
- var passwordField = '#passwordField-' + this.cid + '-' + shareId;
+ passwordField = '#passwordField-' + this.cid + '-' + shareId;
this.$(passwordField).focus();
}
},
@@ -623,10 +623,9 @@
var $li = $element.closest('li[data-share-id]');
var shareId = $li.data('share-id');
+ var permissions = OC.PERMISSION_CREATE | OC.PERMISSION_UPDATE | OC.PERMISSION_DELETE | OC.PERMISSION_READ;
if ($element.is(':checked')) {
- var permissions = OC.PERMISSION_CREATE | OC.PERMISSION_UPDATE | OC.PERMISSION_DELETE;
- } else {
- var permissions = OC.PERMISSION_CREATE | OC.PERMISSION_UPDATE | OC.PERMISSION_DELETE | OC.PERMISSION_READ;
+ permissions = OC.PERMISSION_CREATE | OC.PERMISSION_UPDATE | OC.PERMISSION_DELETE;
}
/** disable checkboxes during save operation to avoid race conditions **/