Fix show page not displaying content
This commit is contained in:
parent
504f47ce2b
commit
f9013218db
|
@ -16,7 +16,7 @@ $(document).ready(function() {
|
||||||
function ajax_load_proc(wapper,url,isBanner){
|
function ajax_load_proc(wapper,url,isBanner){
|
||||||
$.get(encodeURI(url), {}, function(respText,textSta,XML){
|
$.get(encodeURI(url), {}, function(respText,textSta,XML){
|
||||||
if (textSta == 'success') {
|
if (textSta == 'success') {
|
||||||
if (respText.indexOf("<title>") == -1) wapper.html(respText);
|
if (respText.indexOf('<meta charset="utf-8">') == -1) wapper.html(respText);
|
||||||
};
|
};
|
||||||
if(textSta == 'error')
|
if(textSta == 'error')
|
||||||
wapper.html("Loading Failed<br/> <a href='"+$(this).attr('path')+"'>Go See</a>");
|
wapper.html("Loading Failed<br/> <a href='"+$(this).attr('path')+"'>Go See</a>");
|
||||||
|
|
Loading…
Reference in New Issue