summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogexpirationview.js5
-rw-r--r--core/js/sharedialoglinkshareview.js8
-rw-r--r--core/js/sharedialogresharerinfoview.js5
-rw-r--r--core/js/sharedialogview.js2
4 files changed, 8 insertions, 12 deletions
diff --git a/core/js/sharedialogexpirationview.js b/core/js/sharedialogexpirationview.js
index e752c66bf35..4c628f5498a 100644
--- a/core/js/sharedialogexpirationview.js
+++ b/core/js/sharedialogexpirationview.js
@@ -48,7 +48,7 @@
if(!_.isUndefined(options.configModel)) {
this.configModel = options.configModel;
} else {
- console.warn('missing OC.Share.ShareConfigModel');
+ throw 'missing OC.Share.ShareConfigModel';
}
},
@@ -64,8 +64,7 @@
}
var expirationTemplate = this.template();
- this.$el.empty();
- this.$el.append(expirationTemplate({
+ this.$el.html(expirationTemplate({
setExpirationLabel: t('core', 'Set expiration date'),
expirationLabel: t('core', 'Expiration'),
expirationDatePlaceholder: t('core', 'Expiration date'),
diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js
index ca6413761b0..ff22b629dc4 100644
--- a/core/js/sharedialoglinkshareview.js
+++ b/core/js/sharedialoglinkshareview.js
@@ -85,7 +85,7 @@
if(!_.isUndefined(options.configModel)) {
this.configModel = options.configModel;
} else {
- console.warn('missing OC.Share.ShareConfigModel');
+ throw 'missing OC.Share.ShareConfigModel';
}
},
@@ -96,8 +96,7 @@
|| !this.showLink
|| !this.configModel.isShareWithLinkAllowed())
{
- this.$el.empty();
- this.$el.append(linkShareTemplate({
+ this.$el.html(linkShareTemplate({
shareAllowed: false,
noSharingPlaceholder: t('core', 'Resharing is not allowed')
}));
@@ -114,8 +113,7 @@
publicUploadChecked = 'checked="checked"';
}
- this.$el.empty();
- this.$el.append(linkShareTemplate({
+ this.$el.html(linkShareTemplate({
shareAllowed: true,
linkShareLabel: t('core', 'Share link'),
urlLabel: t('core', 'Link'),
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
}));
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index 63c3473252f..e07a5cee49a 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -81,7 +81,7 @@
if(!_.isUndefined(options.configModel)) {
this.configModel = options.configModel;
} else {
- console.warn('missing OC.Share.ShareConfigModel');
+ throw 'missing OC.Share.ShareConfigModel';
}
var subViewOptions = {