Fix js bug.
This commit is contained in:
parent
e31e1e85e0
commit
8c0d8a955d
|
@ -55,11 +55,11 @@ $(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(){
|
||||||
if(head_images.responseJSON['head_images'] != ''){
|
if(head_data.responseJSON['head_images'] != ''){
|
||||||
$('.header-nav').html(head_images.responseJSON['head_images']);
|
$('.header-nav').html(head_data.responseJSON['head_images']);
|
||||||
}
|
}
|
||||||
if(head_images.responseJSON['title'] != ''){
|
if(head_data.responseJSON['title'] != ''){
|
||||||
$('.navbar-brand').html(head_images.responseJSON['title']);
|
$('.navbar-brand').html(head_data.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'])
|
||||||
|
|
Loading…
Reference in New Issue