diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-04 10:24:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-04 10:24:40 +0200 |
commit | e387d90b299ee44e868b2ae146eaf7965d91f215 (patch) | |
tree | 522b81964bf80194636eff4b53d7a85853ab4ad6 /core/js/sharedialogview.js | |
parent | 5aa0ad92a4c4c9ca458c0275f7869e67a211ed68 (diff) | |
parent | 1161b838d78a7a77d68b17664759766e49c9bb46 (diff) | |
download | nextcloud-server-e387d90b299ee44e868b2ae146eaf7965d91f215.tar.gz nextcloud-server-e387d90b299ee44e868b2ae146eaf7965d91f215.zip |
Merge pull request #11583 from nextcloud/csp/more_moving_handlebars
Csp/more moving handlebars
Diffstat (limited to 'core/js/sharedialogview.js')
-rw-r--r-- | core/js/sharedialogview.js | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index f5b876c37be..9c648357e61 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -15,20 +15,6 @@ OC.Share = {}; } - var TEMPLATE_BASE = - '<div class="resharerInfoView subView"></div>' + - '{{#if isSharingAllowed}}' + - '<label for="shareWith-{{cid}}" class="hidden-visually">{{shareLabel}}</label>' + - '<div class="oneline">' + - ' <input id="shareWith-{{cid}}" class="shareWithField" type="text" placeholder="{{sharePlaceholder}}" />' + - ' <span class="shareWithLoading icon-loading-small hidden"></span>'+ - ' <span class="shareWithConfirm icon icon-confirm"></span>' + - '</div>' + - '{{/if}}' + - '<div class="linkShareView subView"></div>' + - '<div class="shareeListView subView"></div>' + - '<div class="loading hidden" style="height: 50px"></div>'; - /** * @class OCA.Share.ShareDialogView * @member {OC.Share.ShareItemModel} model @@ -663,7 +649,7 @@ render: function() { var self = this; - var baseTemplate = this._getTemplate('base', TEMPLATE_BASE); + var baseTemplate = OC.Share.Templates['sharedialogview']; this.$el.html(baseTemplate({ cid: this.cid, @@ -739,20 +725,6 @@ return t('core', 'Name...'); }, - /** - * - * @param {string} key - an identifier for the template - * @param {string} template - the HTML to be compiled by Handlebars - * @returns {Function} from Handlebars - * @private - */ - _getTemplate: function (key, template) { - if (!this._templates[key]) { - this._templates[key] = Handlebars.compile(template); - } - return this._templates[key]; - }, - }); OC.Share.ShareDialogView = ShareDialogView; |