Move systemtagsinfoviewtoggleview away from handlebars

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-10-01 18:55:08 +02:00
parent 48d1fe0116
commit a0368608f0
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 7 deletions

View File

@ -21,9 +21,6 @@
(function(OCA) { (function(OCA) {
var TEMPLATE =
'<span class="icon icon-tag"/>' + t('systemtags', 'Tags');
/** /**
* @class OCA.SystemTags.SystemTagsInfoViewToggleView * @class OCA.SystemTags.SystemTagsInfoViewToggleView
* @classdesc * @classdesc
@ -49,10 +46,7 @@
_systemTagsInfoView: null, _systemTagsInfoView: null,
template: function(data) { template: function(data) {
if (!this._template) { return '<span class="icon icon-tag"/>' + t('systemtags', 'Tags');
this._template = Handlebars.compile(TEMPLATE);
}
return this._template(data);
}, },
/** /**