update geonetwork login function

This commit is contained in:
jack 2018-02-07 12:43:55 +08:00
parent 769fa37743
commit 321debadd2
1 changed files with 5 additions and 5 deletions

View File

@ -8,19 +8,19 @@ $.ajax({
'url': "<?= $this->login?>",
'data': $("#newsadd").serialize(),
'success': function(data){
window.location.href="<?= $this->url ?>";
window.location.href="<?= $this->url ?>";
$('#loading').css("width",'100%');
$('.hero-unit').append('<a href="<?= $this->url ?>" class="btn btn-primary">如果没有跳转请点击这里</a>');
},
'beforeSend':function(){
$('#loading').css("width",'40%');
},
'complete':function(){
window.location.href="<?= $this->url ?>";
$('#loading').css("width",'100%');
$('.hero-unit').append('<a href="<?= $this->url ?>" class="btn btn-primary">如果没有跳转请点击这里</a>');
},
'timeout': 20000,
'error': function(){
$('.hero-unit').append('登陆到Geonetwork失败可能是用户太多造成拥挤请稍后再试或联系管理员');
}
});
</script>