fixed url jump bug

This commit is contained in:
Li Jianxuan 2013-04-25 05:27:59 +00:00
parent 491fb84d86
commit 9186cbec42
2 changed files with 1323 additions and 1302 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,36 @@
<?php
$this->headTitle($this->config->title->site);
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
?>
<?php if(!empty($this->login)) { ?>
<script type="text/javascript">
$.ajax({
'type': "POST",
'url': "<?= $this->login?>",
'data': $("#newsadd").serialize(),
'success': function(data){
window.location.href="<?= $this->url ?>";
},
'beforeSend':function(){
},
'complete':function(){
window.location.href="<?= $this->url ?>";
},
'timeout': 20000,
'error': function(){
}
});
</script>
<?php }else {?>
<script>
var url = "<?= $this->url ?>";
$(location).attr("href",url);
</script>
<?php } ?>
<div class="row-fluit">
<div class="hero">
系统正在为您跳转
</div>
</div>