Wizard Base
This commit is contained in:
@@ -33,7 +33,10 @@ var PageBase = new Class({
|
||||
//p('Opening: ' +self.getName() + ', ' + action + ', ' + Object.toQueryString(params));
|
||||
|
||||
try {
|
||||
self[action+'Action'](params);
|
||||
self.el.empty();
|
||||
var elements = self[action+'Action'](params);
|
||||
self.el.adopt(elements);
|
||||
|
||||
self.fireEvent('opened');
|
||||
}
|
||||
catch (e){
|
||||
@@ -41,6 +44,11 @@ var PageBase = new Class({
|
||||
self.fireEvent('error');
|
||||
}
|
||||
},
|
||||
|
||||
openUrl: function(url){
|
||||
if(History.getPath() != url)
|
||||
History.push(url);
|
||||
},
|
||||
|
||||
errorAction: function(e){
|
||||
p('Error, action not found', e);
|
||||
|
||||
Reference in New Issue
Block a user