Merge pull request #1240 from nemo9l/fix/admin-favorite-btn

Fix #1234
This commit is contained in:
Kijin Sung 2020-02-14 16:08:04 +09:00 committed by GitHub
commit 020b240579
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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');
}