Fix description hidden in details mode

This commit is contained in:
Kijin Sung 2018-08-20 12:03:15 +09:00
parent 666be26ca7
commit 92406f797b

View file

@ -1432,8 +1432,8 @@ jQuery(function($){
$t.addClass('tg').find('>*:not(:first-child)').hide(); $t.addClass('tg').find('>*:not(:first-child)').hide();
} }
}); });
var details = $('.x .dsTg td.tg>*:not(:first-child),.x .dsTg .rx_detail_marks').hide(); var details = $('.x .dsTg td.tg>*:not(:first-child), .x .dsTg .rx_detail_marks').hide();
var simples = $('.x .dsTg td.tg>*:not(:first-child),.x .dsTg .rx_simple_marks').show(); var simples = $('.x .dsTg .rx_simple_marks').show();
var simpleBtnFn = function(){ var simpleBtnFn = function(){
details.hide(); details.hide();
simples.show(); simples.show();
@ -1450,6 +1450,8 @@ jQuery(function($){
detailBtn.click(detailBtnFn); detailBtn.click(detailBtnFn);
if($(window).width() > 980) { if($(window).width() > 980) {
detailBtnFn(); detailBtnFn();
} else {
simpleBtnFn();
} }
}); });