Prevent reloading issue in kernel.js
This commit is contained in:
parent
a1840c86de
commit
182729a7fe
|
@ -3,7 +3,7 @@ var banner_index = 0;
|
|||
|
||||
$(document).ready(function() {
|
||||
$.each($(".dymanic_load"),function(){
|
||||
if($(this).attr("path")==''){
|
||||
if($(this).attr("path")=='' || $(this).attr("path")=='?'){
|
||||
$(this).html("App setting Failed");
|
||||
}else{
|
||||
ajax_load_proc($(this),$(this).attr("path"));
|
||||
|
@ -16,7 +16,7 @@ $(document).ready(function() {
|
|||
function ajax_load_proc(wapper,url,isBanner){
|
||||
$.get(encodeURI(url), {}, function(respText,textSta,XML){
|
||||
if (textSta == 'success') {
|
||||
wapper.html(respText);
|
||||
if (respText.indexOf("<title>") == -1) wapper.html(respText);
|
||||
};
|
||||
if(textSta == 'error')
|
||||
wapper.html("Loading Failed<br/> <a href='"+$(this).attr('path')+"'>Go See</a>");
|
||||
|
|
Loading…
Reference in New Issue