* refactor ifelse code

This commit is contained in:
chaideqing
2021-11-24 11:22:07 +08:00
parent 70677f0673
commit 45556985f7
3 changed files with 15 additions and 6 deletions

View File

@@ -28,10 +28,13 @@ $(function()
xuanAction += "<a href='" + url + "'" + title + target + btnClass + '>' + action + "</a>";
});
if(xuanAction != "<div class='xuancard-actions fixed'>"){
if(xuanAction != "<div class='xuancard-actions fixed'>")
{
xuanAction += '</div>';
$('body').append(xuanAction);
}else{
}
else
{
$('#scrollContent').css('height', 'calc(100% - 36px)');
}
$('.xuancard-actions a.iframe').modalTrigger();