X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3193141f55df20910cf8ba35f9e669d79c90d3f4..1617abdf1a5ec504c28f52daf2a2b1728a5b28f6:/platforma/static/js/views/view.js diff --git a/platforma/static/js/views/view.js b/platforma/static/js/views/view.js index d0c6d170..9441fc50 100644 --- a/platforma/static/js/views/view.js +++ b/platforma/static/js/views/view.js @@ -21,9 +21,9 @@ var View = Editor.Object.extend({ $(this.element).bind('resize', this._resizeHandler); }, - render: function() { + render: function(template) { console.log('rendering:', this._className); - this.element.html(render_template(this.template, this)); + this.element.html(render_template(template || this.template, this)); }, frozen: function() {