Dodanie PanelContainerView oraz postawy HTMLView i XMLView.
[redakcja.git] / project / static / js / views / html.js
1 /*global Class render_template panels */
2 var HTMLView = Class.extend({
3   element: null,
4   template: 'html-view-template',
5   
6   init: function(element, template) {
7     this.element = $(element);
8     this.template = template || this.template;
9     this.element.html(render_template(this.template, {}));
10   },
11   
12   dispose: function() {
13     
14   }
15 });
16
17 // Register view
18 panels.push({name: 'html', klass: HTMLView});