X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/07b09d489ecbc789a096e53d98070c286c286101..78644811ca0c6042212788dc67add42bc41fb74c:/project/static/js/views/view.js?ds=sidebyside diff --git a/project/static/js/views/view.js b/project/static/js/views/view.js deleted file mode 100644 index 498341e7..00000000 --- a/project/static/js/views/view.js +++ /dev/null @@ -1,65 +0,0 @@ -/*globals Class render_template*/ -var View = Class.extend({ - element: null, - model: null, - template: null, - overlayClass: 'view-overlay', - overlay: null, - id: null, - - init: function(element, model, template) { - this.element = $(element); - this.model = model; - this.template = template || this.template; - - if (this.template) { - this.element.html(render_template(this.template, {})); - } - - View.lastId = View.lastId + 1; - this.id = 'view-' + View.lastId; - }, - - // IdentycznoÅÄ - hash: function() { - - }, - - frozen: function() { - return !!this.overlay; - }, - - freeze: function(message) { - this.overlay = this.overlay - || $('