From: Darren Date: Sun, 27 Oct 2013 11:01:57 +0000 (+0000) Subject: Correctly using application template (fixes timestamps/theme/css class issues) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=00203b94cb18c60b6fa45f59a4289b5c5b914496;p=KiwiIRC.git Correctly using application template (fixes timestamps/theme/css class issues) --- diff --git a/client/src/views/application.js b/client/src/views/application.js index f68e52b..2f0af27 100644 --- a/client/src/views/application.js +++ b/client/src/views/application.js @@ -2,7 +2,10 @@ _kiwi.view.Application = Backbone.View.extend({ initialize: function () { var that = this; - this.$el.append($('#tmpl_application').html().trim()); + this.$el = $($('#tmpl_application').html().trim()); + this.el = this.$el[0]; + + $(this.model.get('container') || 'body').append(this.$el); this.elements = { panels: this.$el.find('.panels'),