Movie search

Profile Settings
This commit is contained in:
Ruud
2011-03-20 22:12:33 +01:00
parent cc260d3a07
commit 288aa8c0a1
34 changed files with 1408 additions and 178 deletions
+9 -3
View File
@@ -1,6 +1,6 @@
var CouchPotato = new Class({
Implements: [Options],
Implements: [Events, Options],
defaults: {
page: 'wanted',
@@ -11,7 +11,7 @@ var CouchPotato = new Class({
pages: [],
block: [],
initialize: function(options) {
setup: function(options) {
var self = this;
self.setOptions(options);
@@ -62,6 +62,8 @@ var CouchPotato = new Class({
$(pg).inject(self.content);
});
self.fireEvent('load')
},
openPage: function(url) {
@@ -85,9 +87,13 @@ var CouchPotato = new Class({
getBlock: function(block_name){
return this.block[block_name]
},
getPage: function(name){
return this.pages[name]
}
});
window.App = new CouchPotato();
var ApiClass = new Class({