section page added

This commit is contained in:
Harry Bomrah committed 2012-04-11 17:58:52 +08:00
1 parent 5a6541a592
commit 25ca29403c
5 files changed
+36 -11

No files matched your search

+24 -4
View File
@@ -335,9 +335,28 @@ var orbitDesktop = function(dom){
o.currenthtml = target;
o.currentface = "settings";
var bindHandlers = function(){
$("ul#setting_left_nav li a").click(function(){
var tfunc = $(this).attr("href");
switch(tfunc){
case "themes":
themes();
break;
case "sections":
sections();
break;
}
})
}
var loadThemePage = function(){
var sections = function(){
var bindHandlers = function(){
}
$("div#panel_r").load("/desktop/settingsections",function(){
bindHandlers();
})
}
var themes = function(){
var bindHandlers = function(){
$(".theme_list > li").click(function(){
o.changeTheme($(this).find('.theme_name').text());
@@ -379,13 +398,14 @@ var orbitDesktop = function(dom){
});
}
$("div#panel_r").load("/desktop/settingthemes/",function(){
$("div#panel_r").load("/desktop/settingthemes",function(){
bindHandlers();
})
}
$(o.contentHolder).empty().load("/desktop/"+target,function(){
loadThemePage();
bindHandlers();
sections();
});
};
this.loadWallpaper = function(wallpaper){
+4
View File
@@ -40,6 +40,10 @@ class DesktopController< ApplicationController
render "desktop/settings/themes", :layout => false
end
def settingsections
render "desktop/settings/sections", :layout => false
end
def getgroups
@section = Section.find(params["sectionid"])
@groups = @section.groups
+6 -6
View File
@@ -8,12 +8,12 @@
<div id="panel_l" class="ph">
<div class="s_menu sm_v">
<ul>
<li><a href="" class="admtxt hh2 w2 hp">Overview</a></li>
<li><a href="" class="admtxt hh2 w2 hp">Account</a></li>
<li><a href="" class="admtxt hh2 w2 hp">Sections</a></li>
<li><a href="themes" class="admtxt hh2 w2 hp thmtxt thmc1">Theme</a></li>
<li><a href="" class="admtxt hh2 w2 hp">Connection</a></li>
<ul id='setting_left_nav'>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Overview</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Account</a></li>
<li><a href="sections" class="admtxt hh2 w2 hp" onclick='return false;'>Sections</a></li>
<li><a href="themes" class="admtxt hh2 w2 hp thmtxt thmc1" onclick='return false;'>Theme</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Connection</a></li>
</ul>
</div>
</div>
@@ -0,0 +1 @@
Fucking section setting page...