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

@ -9,18 +9,18 @@ $.ajax({
'data': $("#newsadd").serialize(), 'data': $("#newsadd").serialize(),
'success': function(data){ '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(){ 'beforeSend':function(){
$('#loading').css("width",'40%'); $('#loading').css("width",'40%');
}, },
'complete':function(){ '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, 'timeout': 20000,
'error': function(){ 'error': function(){
$('.hero-unit').append('登陆到Geonetwork失败可能是用户太多造成拥挤请稍后再试或联系管理员');
} }
}); });
</script> </script>