X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4607903456ce2c96d5c40d72c603093ef02f5d29..061f517181630ee982c33aee63965b18965fd5aa:/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() {