Make clientside ordered
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Block.Footer = new Class({
|
||||
var BlockFooter = new Class({
|
||||
|
||||
Extends: BlockBase,
|
||||
|
||||
@@ -8,4 +8,4 @@ Block.Footer = new Class({
|
||||
self.el = new Element('div.footer');
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Block.Menu = new Class({
|
||||
var BlockMenu = new Class({
|
||||
|
||||
Extends: BlockBase,
|
||||
|
||||
@@ -52,4 +52,4 @@ Block.Menu = new Class({
|
||||
return new Element('li').adopt(tab).inject(self.more_option_ul, position || 'bottom');
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Block.Navigation = new Class({
|
||||
var BlockNavigation = new Class({
|
||||
|
||||
Extends: BlockBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ Block.Navigation = new Class({
|
||||
self.backtotop.fade('in')
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
self.nav.addEvents({
|
||||
'click:relay(a)': function(){
|
||||
if($(document.body).getParent().hasClass('menu_shown'))
|
||||
@@ -70,7 +70,7 @@ Block.Navigation = new Class({
|
||||
if(nr <= 2) return;
|
||||
if(el.get('tag') == 'a')
|
||||
self.nav.grab(new Element('li').grab(el.clone().cloneEvents(el)));
|
||||
else
|
||||
else
|
||||
self.nav.grab(new Element('li.separator'));
|
||||
});
|
||||
|
||||
@@ -89,4 +89,4 @@ Block.Navigation = new Class({
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user