diff --git a/apps/files/js/filemultiselectmenu.js b/apps/files/js/filemultiselectmenu.js
index d587d1fbdb2..d50fe28eace 100644
--- a/apps/files/js/filemultiselectmenu.js
+++ b/apps/files/js/filemultiselectmenu.js
@@ -9,21 +9,6 @@
*/
(function() {
- var TEMPLATE_MENU =
- '
' +
- '{{#each items}}' +
- '- ' +
- '
' +
- '{{/each}}' +
- '
';
-
var FileMultiSelectMenu = OC.Backbone.View.extend({
tagName: 'div',
className: 'filesSelectMenu popovermenu bubble menu-center',
@@ -34,12 +19,12 @@
events: {
'click a.action': '_onClickAction'
},
- template: Handlebars.compile(TEMPLATE_MENU),
+
/**
* Renders the menu with the currently set items
*/
render: function() {
- this.$el.html(this.template({
+ this.$el.html(OCA.Files.Templates['filemultiselectmenu']({
items: this._scopes
}));
},
diff --git a/apps/files/js/templates.js b/apps/files/js/templates.js
index 325592a3f88..8ada62b6d60 100644
--- a/apps/files/js/templates.js
+++ b/apps/files/js/templates.js
@@ -1,5 +1,34 @@
(function() {
var template = Handlebars.template, templates = OCA.Files.Templates = OCA.Files.Templates || {};
+templates['filemultiselectmenu'] = template({"1":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
+
+ return " \n \n \n";
+},"2":function(container,depth0,helpers,partials,data) {
+ var helper;
+
+ return " \n";
+},"4":function(container,depth0,helpers,partials,data) {
+ return " \n";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return "\n"
+ + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.items : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\n";
+},"useData":true});
templates['filesummary'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var helper;
diff --git a/apps/files/js/templates/filemultiselectmenu.handlebars b/apps/files/js/templates/filemultiselectmenu.handlebars
new file mode 100644
index 00000000000..9a723920db9
--- /dev/null
+++ b/apps/files/js/templates/filemultiselectmenu.handlebars
@@ -0,0 +1,14 @@
+
+ {{#each items}}
+ -
+
+
+ {{/each}}
+