section page added
This commit is contained in:
parent
5a6541a592
commit
25ca29403c
|
@ -335,9 +335,28 @@ var orbitDesktop = function(dom){
|
||||||
o.currenthtml = target;
|
o.currenthtml = target;
|
||||||
o.currentface = "settings";
|
o.currentface = "settings";
|
||||||
var bindHandlers = function(){
|
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(){
|
var bindHandlers = function(){
|
||||||
$(".theme_list > li").click(function(){
|
$(".theme_list > li").click(function(){
|
||||||
o.changeTheme($(this).find('.theme_name').text());
|
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();
|
bindHandlers();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
$(o.contentHolder).empty().load("/desktop/"+target,function(){
|
$(o.contentHolder).empty().load("/desktop/"+target,function(){
|
||||||
loadThemePage();
|
bindHandlers();
|
||||||
|
sections();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
this.loadWallpaper = function(wallpaper){
|
this.loadWallpaper = function(wallpaper){
|
||||||
|
|
|
@ -40,6 +40,10 @@ class DesktopController< ApplicationController
|
||||||
render "desktop/settings/themes", :layout => false
|
render "desktop/settings/themes", :layout => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def settingsections
|
||||||
|
render "desktop/settings/sections", :layout => false
|
||||||
|
end
|
||||||
|
|
||||||
def getgroups
|
def getgroups
|
||||||
@section = Section.find(params["sectionid"])
|
@section = Section.find(params["sectionid"])
|
||||||
@groups = @section.groups
|
@groups = @section.groups
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
|
|
||||||
<div id="panel_l" class="ph">
|
<div id="panel_l" class="ph">
|
||||||
<div class="s_menu sm_v">
|
<div class="s_menu sm_v">
|
||||||
<ul>
|
<ul id='setting_left_nav'>
|
||||||
<li><a href="" class="admtxt hh2 w2 hp">Overview</a></li>
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Overview</a></li>
|
||||||
<li><a href="" class="admtxt hh2 w2 hp">Account</a></li>
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Account</a></li>
|
||||||
<li><a href="" class="admtxt hh2 w2 hp">Sections</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">Theme</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">Connection</a></li>
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Connection</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fucking section setting page...
|
|
@ -111,7 +111,7 @@ Orbit::Application.routes.draw do
|
||||||
match '/desktop/getgroups/'=>'desktop#getgroups'
|
match '/desktop/getgroups/'=>'desktop#getgroups'
|
||||||
match '/desktop/getsectionlist/'=>'desktop#getsectionlist'
|
match '/desktop/getsectionlist/'=>'desktop#getsectionlist'
|
||||||
match '/desktop/settingthemes/'=>'desktop#settingthemes'
|
match '/desktop/settingthemes/'=>'desktop#settingthemes'
|
||||||
|
match '/desktop/settingsections/'=>'desktop#settingsections'
|
||||||
match '/desktop/temp_func/'=>'desktop#temp_func'
|
match '/desktop/temp_func/'=>'desktop#temp_func'
|
||||||
|
|
||||||
match '/panel/:app_name/front_end/:app_action/:id' => 'pages#show_from_link', :constraints => lambda { |request|
|
match '/panel/:app_name/front_end/:app_action/:id' => 'pages#show_from_link', :constraints => lambda { |request|
|
||||||
|
|
Loading…
Reference in New Issue