Fix js bug.

This commit is contained in:
BoHung Chiu 2022-02-25 10:49:59 +08:00
parent c9d670f796
commit e31e1e85e0
1 changed files with 6 additions and 2 deletions

View File

@ -55,8 +55,12 @@ $(document).ready(function(){
return Math.round(Number(num)*(10**Digit))/(10**Digit); return Math.round(Number(num)*(10**Digit))/(10**Digit);
}; };
head_data.done(function(){ head_data.done(function(){
// $('.header-nav').html(head_images.responseJSON['head_images']); if(head_images.responseJSON['head_images'] != ''){
// $('.navbar-brand').html(head_images.responseJSON['title']) $('.header-nav').html(head_images.responseJSON['head_images']);
}
if(head_images.responseJSON['title'] != ''){
$('.navbar-brand').html(head_images.responseJSON['title']);
}
data['danger_texts'] = head_data.responseJSON['danger_texts']; data['danger_texts'] = head_data.responseJSON['danger_texts'];
$('head title').text(head_data.responseJSON['page_title']) $('head title').text(head_data.responseJSON['page_title'])
}); });