Make clientside ordered
This commit is contained in:
@@ -35,5 +35,3 @@ var BlockBase = new Class({
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
var Block = BlockBase;
|
||||
@@ -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({
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -69,18 +69,18 @@
|
||||
createLayout: function(){
|
||||
var self = this;
|
||||
|
||||
self.block.header = new Block();
|
||||
self.block.header = new BlockBase();
|
||||
|
||||
self.c.adopt(
|
||||
$(self.block.header).addClass('header').adopt(
|
||||
new Element('div').adopt(
|
||||
self.block.navigation = new Block.Navigation(self, {}),
|
||||
self.block.search = new Block.Search(self, {}),
|
||||
self.block.more = new Block.Menu(self, {'button_class': 'icon2.cog'})
|
||||
self.block.navigation = new BlockNavigation(self, {}),
|
||||
self.block.search = new BlockSearch(self, {}),
|
||||
self.block.more = new BlockMenu(self, {'button_class': 'icon2.cog'})
|
||||
)
|
||||
),
|
||||
self.content = new Element('div.content'),
|
||||
self.block.footer = new Block.Footer(self, {})
|
||||
self.block.footer = new BlockFooter(self, {})
|
||||
);
|
||||
|
||||
var setting_links = [
|
||||
|
||||
Reference in New Issue
Block a user