Added seminar section
This commit is contained in:
parent
f635f642fc
commit
6923b82284
|
@ -24,7 +24,7 @@ var orbitDesktop = function(dom){
|
||||||
this.transitionTime = 500;
|
this.transitionTime = 500;
|
||||||
this.currenthtml = "desktop.html";
|
this.currenthtml = "desktop.html";
|
||||||
this.currentface = "home";
|
this.currentface = "home";
|
||||||
this.desktopData = {"home":"","settings":"","work":"","favorite":"","apps_manager":"","sections":"","journal_p":"","appstore":"","orbit":""};
|
this.desktopData = {"home":"","settings":"","work":"","favorite":"","apps_manager":"","sections":"","journal_p":"","appstore":"","orbit":"","books":"","seminar_p":""};
|
||||||
this.tp = "";
|
this.tp = "";
|
||||||
this.sectionList;
|
this.sectionList;
|
||||||
this.initialize = function(){
|
this.initialize = function(){
|
||||||
|
@ -137,6 +137,15 @@ var orbitDesktop = function(dom){
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$("a#d_seminar_p").click(function(){
|
||||||
|
var target = $(this).attr("href");
|
||||||
|
if(o.currenthtml!=target){
|
||||||
|
o.desktopData[o.currentface] = $(o.contentHolder).html();
|
||||||
|
$("#content").hide("drop",o.transitionTime,function(){
|
||||||
|
o.initializeSeminar(target);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
$(window).resize(function(){
|
$(window).resize(function(){
|
||||||
var ww = $(window).width();
|
var ww = $(window).width();
|
||||||
$("img#thmbackground").attr({"width":ww});
|
$("img#thmbackground").attr({"width":ww});
|
||||||
|
@ -1380,6 +1389,68 @@ var orbitDesktop = function(dom){
|
||||||
bindHandlers();
|
bindHandlers();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.initializeSeminar = function(target){
|
||||||
|
o.currenthtml = target;
|
||||||
|
o.currentface = "seminar_p";
|
||||||
|
var bindHandlers = function(){
|
||||||
|
$('.s_menu a').on({
|
||||||
|
click: function(){
|
||||||
|
if(!$(this).hasClass('active')){
|
||||||
|
var tfunc = $(this).attr('href');
|
||||||
|
switch(tfunc){
|
||||||
|
case 'list':
|
||||||
|
list();
|
||||||
|
break;
|
||||||
|
case 'addseminar':
|
||||||
|
addseminar();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$('.s_menu a').removeClass('thmc1 thmtxt active');
|
||||||
|
$(this).addClass('thmc1 thmtxt active');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mouseenter: function(){
|
||||||
|
if(!$(this).hasClass('active')){
|
||||||
|
$(this).switchClass('admtxt','thmc1 thmtxt',0);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mouseleave: function(){
|
||||||
|
var t = $(this).hasClass('active') ? '' : 'thmc1 thmtxt';
|
||||||
|
$(this).switchClass(t,'admtxt',0);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var list = function(){
|
||||||
|
var bindHandlers = function(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$("div#seminar_p div#panel_r").load("/desktop/seminar_p_list",function(){
|
||||||
|
bindHandlers();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
var addseminar = function(){
|
||||||
|
var bindHandlers = function(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$("div#seminar_p div#panel_r").load("/desktop/seminar_p_add",function(){
|
||||||
|
bindHandlers();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if(!o.desktopData[o.currentface]){
|
||||||
|
$(o.contentHolder).empty().load("/desktop/"+target,function(){
|
||||||
|
list();
|
||||||
|
bindHandlers();
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
$(o.contentHolder).html(o.desktopData[o.currentface]);
|
||||||
|
list();
|
||||||
|
bindHandlers();
|
||||||
|
}
|
||||||
|
}
|
||||||
this.loadWallpaper = function(wallpaper){ // this is to load new wallpaper
|
this.loadWallpaper = function(wallpaper){ // this is to load new wallpaper
|
||||||
if(!wallpaper)wallpapernm = o.themesettings.background;else wallpapernm = wallpaper
|
if(!wallpaper)wallpapernm = o.themesettings.background;else wallpapernm = wallpaper
|
||||||
var ww = $(window).width();
|
var ww = $(window).width();
|
||||||
|
|
|
@ -23,6 +23,18 @@ class DesktopPublicationsController< ApplicationController
|
||||||
render "desktop/books/add", :layout => false
|
render "desktop/books/add", :layout => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def seminar_p
|
||||||
|
render "desktop/seminar_p", :layout => false
|
||||||
|
end
|
||||||
|
|
||||||
|
def seminar_p_list
|
||||||
|
render "desktop/seminar_pages/list", :layout => false
|
||||||
|
end
|
||||||
|
|
||||||
|
def seminar_p_add
|
||||||
|
render "desktop/seminar_pages/add", :layout => false
|
||||||
|
end
|
||||||
|
|
||||||
def create_journal
|
def create_journal
|
||||||
Journal.create(user_id: current_user.id, title: "Ice Cream Sandwich")
|
Journal.create(user_id: current_user.id, title: "Ice Cream Sandwich")
|
||||||
b = Array.new
|
b = Array.new
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
this is seminar page.
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
<div id="seminar_p">
|
||||||
|
<div id="content">
|
||||||
|
<div id="header" class="hh3">
|
||||||
|
<div class="dtitle w2 hh3 hp">
|
||||||
|
<span class="thmtxth">Books</span>
|
||||||
|
</div>
|
||||||
|
<div id="search_app" class="hfn w2 hh2 hp thmc3">
|
||||||
|
<input type="text" class="ini_input form" value="Search" id="searchbox" />
|
||||||
|
<input type="submit" class="ini_input submit thmc1" value="Submit"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="holder">
|
||||||
|
<div id="panel_l" class="ph">
|
||||||
|
<div class="s_menu sm_v">
|
||||||
|
<ul id='setting_left_nav'>
|
||||||
|
<li><a href="list" class="hh2 w2 hp active thmc1 thmtxt" onclick='return false;'>List</a></li>
|
||||||
|
<li><a href="addseminar" class="admtxt hh2 w2 hp" onclick='return false;'>Add/Edit</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Books</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Co-Authors</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Tags & Keywords</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Analysis</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Import</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Export</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="panel_r" class="ph pw admbg hp">
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -0,0 +1 @@
|
||||||
|
This is add page
|
|
@ -0,0 +1 @@
|
||||||
|
This is list page
|
|
@ -0,0 +1,33 @@
|
||||||
|
<div id="seminar_p">
|
||||||
|
<div id="content">
|
||||||
|
<div id="header" class="hh3">
|
||||||
|
<div class="dtitle w2 hh3 hp">
|
||||||
|
<span class="thmtxth">Seminar</span>
|
||||||
|
</div>
|
||||||
|
<div id="search_app" class="hfn w2 hh2 hp thmc3">
|
||||||
|
<input type="text" class="ini_input form" value="Search" id="searchbox" />
|
||||||
|
<input type="submit" class="ini_input submit thmc1" value="Submit"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="holder">
|
||||||
|
<div id="panel_l" class="ph">
|
||||||
|
<div class="s_menu sm_v">
|
||||||
|
<ul id='setting_left_nav'>
|
||||||
|
<li><a href="list" class="hh2 w2 hp active thmc1 thmtxt" onclick='return false;'>List</a></li>
|
||||||
|
<li><a href="addseminar" class="admtxt hh2 w2 hp" onclick='return false;'>Add/Edit</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Books</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Co-Authors</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Tags & Keywords</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Analysis</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Import</a></li>
|
||||||
|
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Export</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="panel_r" class="ph pw admbg hp">
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -188,6 +188,10 @@ Orbit::Application.routes.draw do
|
||||||
match '/desktop/books_list/'=>'desktop_publications#books_list'
|
match '/desktop/books_list/'=>'desktop_publications#books_list'
|
||||||
match '/desktop/books_add/'=>'desktop_publications#books_add'
|
match '/desktop/books_add/'=>'desktop_publications#books_add'
|
||||||
|
|
||||||
|
match '/desktop/seminar_p' => 'desktop_publications#seminar_p'
|
||||||
|
match '/desktop/seminar_p_list/'=>'desktop_publications#seminar_p_list'
|
||||||
|
match '/desktop/seminar_p_add/'=>'desktop_publications#seminar_p_add'
|
||||||
|
|
||||||
|
|
||||||
match '/desktop/twitter/'=>'otheraccounts#twitter'
|
match '/desktop/twitter/'=>'otheraccounts#twitter'
|
||||||
match '/desktop/forgmail/'=>'otheraccounts#gmail'
|
match '/desktop/forgmail/'=>'otheraccounts#gmail'
|
||||||
|
|
Loading…
Reference in New Issue