Prevent reloading issue in kernel.js

This commit is contained in:
Manson Wang 2013-11-13 10:19:40 +08:00
parent a1840c86de
commit 182729a7fe
1 changed files with 2 additions and 2 deletions

View File

@ -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>");