update geonetwork login function
This commit is contained in:
parent
769fa37743
commit
321debadd2
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue