Files
CouchPotatoServer/couchpotato/static/scripts/block.js
2013-09-03 22:13:42 +02:00

39 lines
479 B
JavaScript

var BlockBase = new Class({
Implements: [Options, Events],
options: {},
initialize: function(parent, options){
var self = this;
self.setOptions(options);
self.page = parent;
self.create();
},
create: function(){
this.el = new Element('div.block');
},
getParent: function(){
return this.page
},
hide: function(){
this.el.hide();
},
show: function(){
this.el.show();
},
toElement: function(){
return this.el
}
});
var Block = BlockBase;