summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogresharerinfoview.js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-08-24 23:20:01 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-16 07:23:26 +0200
commitfdb95613e9b133feed7b7dbad22dc289a54ef094 (patch)
tree1a56906ef86da1b219d4fdafe3fd324d535b2327 /core/js/sharedialogresharerinfoview.js
parentf709022559d434612f995ecce56a65b034590f6b (diff)
downloadnextcloud-server-fdb95613e9b133feed7b7dbad22dc289a54ef094.tar.gz
nextcloud-server-fdb95613e9b133feed7b7dbad22dc289a54ef094.zip
simplification, and throwing where throwing is needed
Diffstat (limited to 'core/js/sharedialogresharerinfoview.js')
-rw-r--r--core/js/sharedialogresharerinfoview.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/js/sharedialogresharerinfoview.js b/core/js/sharedialogresharerinfoview.js
index 8970d857fc3..63df25b4ed8 100644
--- a/core/js/sharedialogresharerinfoview.js
+++ b/core/js/sharedialogresharerinfoview.js
@@ -58,7 +58,7 @@
if(!_.isUndefined(options.configModel)) {
this.configModel = options.configModel;
} else {
- console.warn('missing OC.Share.ShareConfigModel');
+ throw 'missing OC.Share.ShareConfigModel';
}
},
@@ -90,8 +90,7 @@
);
}
- this.$el.empty();
- this.$el.append(reshareTemplate({
+ this.$el.html(reshareTemplate({
avatarEnabled: this.configModel.areAvatarsEnabled(),
sharedByText: sharedByText
}));