journal start
This commit is contained in:
1 parent
682880c5bf
commit
2ebba577eb
4 files changed
+98
-20
No files matched your search
@@ -247,7 +247,7 @@ var orbitDesktop = function(dom){
|
||||
var tempstyle="";
|
||||
if(i==0){
|
||||
tempstyle = "style='display:none;'";
|
||||
$("div#desktop span#section_heading").text(section.name);
|
||||
$("#desktop #section_heading").text(section.name);
|
||||
}
|
||||
$("div#desktop ul#section_list").append($('<li class="section_name" '+tempstyle+'><a class="admtxt hp w2 hh2" onclick="return false;" href="'+section._id+'" >'+section.name+'</a></li>'));
|
||||
})
|
||||
@@ -721,28 +721,30 @@ var orbitDesktop = function(dom){
|
||||
o.currenthtml = target;
|
||||
o.currentface = "journal_p";
|
||||
var bindHandlers = function(){ // bind handler for journal paper
|
||||
$("div#settings ul#setting_left_nav li a").on({
|
||||
$('.s_menu a').on({
|
||||
click: function(){
|
||||
if(!$(this).data("clicked")){
|
||||
var tfunc = $(this).attr("href");
|
||||
switch(tfunc){
|
||||
case "list":
|
||||
list();
|
||||
break;
|
||||
case "addpaper":
|
||||
addpaper();
|
||||
break;
|
||||
}
|
||||
$("div#settings ul#setting_left_nav li a").removeClass('thmc1 thmtxt').data('clicked',null);
|
||||
$(this).addClass('thmc1 thmtxt').data('clicked',true);
|
||||
if(!$(this).hasClass('active')){
|
||||
var tfunc = $(this).attr('href');
|
||||
switch(tfunc){
|
||||
case 'list':
|
||||
list();
|
||||
break;
|
||||
case 'addpaper':
|
||||
addpaper();
|
||||
break;
|
||||
}
|
||||
$('.s_menu a').removeClass('thmc1 thmtxt active');
|
||||
$(this).addClass('thmc1 thmtxt active');
|
||||
}
|
||||
},
|
||||
mouseenter: function(){
|
||||
$(this).removeClass('admtxt').addClass('thmc1 thmtxt');
|
||||
if(!$(this).hasClass('active')){
|
||||
$(this).switchClass('admtxt','thmc1 thmtxt',0);
|
||||
}
|
||||
},
|
||||
mouseleave: function(){
|
||||
var t = $(this).data('clicked') ? '' : 'thmc1 thmtxt';
|
||||
$(this).removeClass(t).addClass('admtxt');
|
||||
var t = $(this).hasClass('active') ? '' : 'thmc1 thmtxt';
|
||||
$(this).switchClass(t,'admtxt',0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user