Spring cleanup
This commit is contained in:
@@ -5,10 +5,9 @@
|
||||
|
||||
.page.wizard h1 {
|
||||
padding: 10px 0;
|
||||
margin: 0 5px;
|
||||
display: block;
|
||||
font-size: 30px;
|
||||
margin-top: 80px;
|
||||
margin: 80px 5px 0;
|
||||
}
|
||||
|
||||
.page.wizard .description {
|
||||
@@ -52,7 +51,7 @@
|
||||
font-weight: normal;
|
||||
border-bottom: 4px solid transparent;
|
||||
}
|
||||
|
||||
|
||||
.page.wizard .tabs li:hover a { border-color: #047792; }
|
||||
.page.wizard .tabs li.done a { border-color: #04bce6; }
|
||||
|
||||
|
||||
@@ -111,10 +111,10 @@ Page.Wizard = new Class({
|
||||
var form = self.el.getElement('.uniForm');
|
||||
var tabs = self.el.getElement('.tabs');
|
||||
|
||||
self.groups.each(function(group, nr){
|
||||
self.groups.each(function(group){
|
||||
|
||||
if(self.headers[group]){
|
||||
group_container = new Element('.wgroup_'+group, {
|
||||
var group_container = new Element('.wgroup_'+group, {
|
||||
'styles': {
|
||||
'opacity': 0.2
|
||||
},
|
||||
@@ -129,7 +129,7 @@ Page.Wizard = new Class({
|
||||
})
|
||||
}
|
||||
|
||||
var content = self.headers[group].content
|
||||
var content = self.headers[group].content;
|
||||
group_container.adopt(
|
||||
new Element('h1', {
|
||||
'text': self.headers[group].title
|
||||
@@ -144,7 +144,7 @@ Page.Wizard = new Class({
|
||||
var tab_navigation = tabs.getElement('.t_'+group);
|
||||
|
||||
if(!tab_navigation && self.headers[group] && self.headers[group].include){
|
||||
tab_navigation = []
|
||||
tab_navigation = [];
|
||||
self.headers[group].include.each(function(inc){
|
||||
tab_navigation.include(tabs.getElement('.t_'+inc));
|
||||
})
|
||||
@@ -157,7 +157,7 @@ Page.Wizard = new Class({
|
||||
|
||||
self.headers[group].include.each(function(inc){
|
||||
self.el.getElement('.tab_'+inc).inject(group_container);
|
||||
})
|
||||
});
|
||||
|
||||
new Element('li.t_'+group).adopt(
|
||||
new Element('a', {
|
||||
@@ -215,9 +215,9 @@ Page.Wizard = new Class({
|
||||
self.groups.each(function(groups2, nr2){
|
||||
var t2 = self.el.getElement('.t_'+groups2);
|
||||
t2[nr2 > nr ? 'removeClass' : 'addClass' ]('done');
|
||||
})
|
||||
});
|
||||
g.tween('opacity', 1);
|
||||
}
|
||||
};
|
||||
|
||||
if(nr == 0)
|
||||
func();
|
||||
@@ -241,4 +241,4 @@ Page.Wizard = new Class({
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user