This commit is contained in:
Ji Yong, Kim 2020-02-12 23:17:32 +09:00
parent 4aec371983
commit cd0fff81bd
2 changed files with 6 additions and 0 deletions

View file

@ -1425,6 +1425,7 @@ jQuery(function($){
// Details toggle in admin table
var simpleBtn = $('.x .dsTg .__simple');
var detailBtn = $('.x .dsTg .__detail');
var tableContainer = $('.x .dsTg');
var tdTitle = $('.x .dsTg td.title');
tdTitle.each(function(){
var $t = $(this);
@ -1439,12 +1440,14 @@ jQuery(function($){
simples.show();
detailBtn.removeClass('x_active');
simpleBtn.addClass('x_active');
tableContainer.addClass('__simpleView');
};
var detailBtnFn = function(){
details.show();
simples.hide();
detailBtn.addClass('x_active');
simpleBtn.removeClass('x_active');
tableContainer.removeClass('__simpleView');
};
simpleBtn.click(simpleBtnFn);
detailBtn.click(detailBtnFn);

View file

@ -13,6 +13,9 @@
top: -1px;
}
}
.__simpleView .fvOff,.__simpleView .fvOn{
top:0;
}
.fvOff{
background-image: data-uri('images/star-empty.svg');
}