Wizzard in domready
This commit is contained in:
@@ -61,25 +61,27 @@ WizardBase.Screen = new Class({
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
window.Wizard = new WizardBase([
|
window.addEvent('domready', function(){
|
||||||
{
|
window.Wizard = new WizardBase([
|
||||||
'title': 'Fill in your username and password',
|
{
|
||||||
'Description': 'Outside blabla',
|
'title': 'Fill in your username and password',
|
||||||
'tab': 'general',
|
'Description': 'Outside blabla',
|
||||||
'fields': ['username', 'password']
|
'tab': 'general',
|
||||||
},
|
'fields': ['username', 'password']
|
||||||
{
|
},
|
||||||
'title': 'What do you use to download your movies',
|
{
|
||||||
'answers': [
|
'title': 'What do you use to download your movies',
|
||||||
{'name': 'nzb', 'label': 'Usenet'},
|
'answers': [
|
||||||
{'name': 'torrent', 'label': 'Torrents'}
|
{'name': 'nzb', 'label': 'Usenet'},
|
||||||
]
|
{'name': 'torrent', 'label': 'Torrents'}
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
'title': 'Do you have a login for any of the following sites',
|
{
|
||||||
'tab': 'providers',
|
'title': 'Do you have a login for any of the following sites',
|
||||||
'needs': function(){
|
'tab': 'providers',
|
||||||
return self.config_nzb || self.config_torrent
|
'needs': function(){
|
||||||
|
return self.config_nzb || self.config_torrent
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
])
|
||||||
])
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user