tiny scrollbar trigger fixed and devin branch merged

This commit is contained in:
Harry Bomrah 2013-04-10 17:27:34 +08:00 committed by Matt K. Fu
parent fcfdd562a6
commit 38d5a193e0
3 changed files with 38 additions and 24 deletions

View File

@ -574,6 +574,7 @@ var orbitDesktop = function(dom){
}); });
}else{ }else{
$(o.contentHolder).html(o.desktopData[o.currentface]); $(o.contentHolder).html(o.desktopData[o.currentface]);
<<<<<<< Updated upstream
header_ani(); header_ani();
try { try {
if(!customload){ if(!customload){
@ -586,6 +587,18 @@ var orbitDesktop = function(dom){
} }
} }
} catch(EX){} } catch(EX){}
=======
try{
if(!customload){
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]"));
}else{
if(submenuitem)
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[custom-load="+submenuitem+"]"));
else
o.sub_menu_item($(o.contentHolder).find("*[content-type=menu] a[load=true]"));
}
}catch(EX){}
>>>>>>> Stashed changes
cache = true; cache = true;
if(typeof o.data_method != "undefined"){ if(typeof o.data_method != "undefined"){
if(o.data_method != ""){ if(o.data_method != ""){
@ -610,31 +623,31 @@ var orbitDesktop = function(dom){
} }
} }
this.sub_menu_item = function(dom,data){ this.sub_menu_item = function(dom,data){
var sub_data_method = dom.attr('callback-method'); var sub_data_method = dom.attr('callback-method');
if(sub_data_method){ if(sub_data_method){
o.lastlink = dom.attr("href"); o.lastlink = dom.attr("href");
$.ajax({ $.ajax({
url : dom.attr("href"), url : dom.attr("href"),
type : "get", type : "get",
success : function(data){ success : function(data){
o.layout_data(data); o.layout_data(data);
if(typeof o.data_method != "undefined"){ if(typeof o.data_method != "undefined"){
if(o.data_method != ""){ if(o.data_method != ""){
if(typeof sub_data_method != "undefined"){ if(typeof sub_data_method != "undefined"){
if(sub_data_method != ""){ if(sub_data_method != ""){
window.o[o.data_method][sub_data_method](); window.o[o.data_method][sub_data_method]();
}
}
}
} }
} }
}) }
o.highlight_sub_menu_item(dom);
} }
if(dom.length == 0) }
o.layout_data(data); })
// $('*[content-type=menu] a').removeClass('thmc1 thmtxt active'); o.highlight_sub_menu_item(dom);
// dom.addClass('thmc1 thmtxt active'); }
if(dom.length == 0)
o.layout_data(data);
// $('*[content-type=menu] a').removeClass('thmc1 thmtxt active');
// dom.addClass('thmc1 thmtxt active');
} }
this.highlight_sub_menu_item = function(no){ this.highlight_sub_menu_item = function(no){
$('*[content-type=menu] a').removeClass('thmc1 thmtxt active'); $('*[content-type=menu] a').removeClass('thmc1 thmtxt active');

View File

@ -16,6 +16,7 @@ class Panel::PersonalJournal::Desktop::JournalPagesController < ApplicationContr
end end
if @view_by.nil? if @view_by.nil?
@view_by = " "
@writing_journals = @writing_journals.asc(:paper_title) @writing_journals = @writing_journals.asc(:paper_title)
else else
@writing_journals = @writing_journals.asc(@view_by).asc(:paper_title) @writing_journals = @writing_journals.asc(@view_by).asc(:paper_title)

View File

@ -77,8 +77,8 @@
<div class="sdm_t hh1"><span class="icon-question-sign"></span></div> <div class="sdm_t hh1"><span class="icon-question-sign"></span></div>
</div> </div>
</div> </div>
<div class="overview" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" > <div class="overview" page-name="journal_p_list" content-layout="datalist" base-width="300" per-column="<%= @per_column.to_s %>" pagination-var="view=<%= @view_by %>&page" >
<% @writing_journals.each do |w| %> <% @writing_journals.each do |w| %>
<%= publication_record w, @view_by%> <%= publication_record w, @view_by%>
<% end %> <% end %>
</div> </div>