1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/30cedd7e894e/ Changeset: 30cedd7e894e User: jgoecks Date: 2013-10-24 16:47:36 Summary: Tool JS module: put template references into render() rather than model definition to allow for module loading when templates are not available. Affected #: 1 file diff -r 7f048ac9d878c59734a7272364e7e580a44576a5 -r 30cedd7e894eea1f4ce9fc6fc36a697a13ea5dba static/scripts/mvc/tools.js --- a/static/scripts/mvc/tools.js +++ b/static/scripts/mvc/tools.js @@ -492,10 +492,9 @@ */ var ToolLinkView = BaseView.extend({ tagName: 'div', - template: Handlebars.templates.tool_link, - + render: function() { - this.$el.append( this.template(this.model.toJSON()) ); + this.$el.append( Handlebars.templates.tool_link(this.model.toJSON()) ); return this; } }); @@ -519,14 +518,15 @@ var ToolSectionView = BaseView.extend({ tagName: 'div', className: 'toolSectionWrapper', - template: Handlebars.templates.panel_section, + initialize: function() { BaseView.prototype.initialize.call(this); this.model.on("change:open", this.update_open, this); }, + render: function() { // Build using template. - this.$el.append( this.template(this.model.toJSON()) ); + this.$el.append( Handlebars.templates.panel_section(this.model.toJSON()) ); // Add tools to section. var section_body = this.$el.find(".toolSectionBody"); @@ -574,7 +574,6 @@ tagName: 'div', id: 'tool-search', className: 'bar', - template: Handlebars.templates.tool_search, events: { 'click': 'focus_and_select', @@ -583,7 +582,7 @@ }, render: function() { - this.$el.append( this.template(this.model.toJSON()) ); + this.$el.append( Handlebars.templates.tool_search(this.model.toJSON()) ); if (!this.model.is_visible()) { this.$el.hide(); } @@ -684,11 +683,10 @@ */ var ToolFormView = Backbone.View.extend({ className: 'toolForm', - template: Handlebars.templates.tool_form, render: function() { this.$el.children().remove(); - this.$el.append( this.template(this.model.toJSON()) ); + this.$el.append( Handlebars.templates.tool_form(this.model.toJSON()) ); } }); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.