fix link error

This commit is contained in:
chiu 2019-11-16 13:55:17 +08:00
parent 9cb1e1d736
commit 51007ebc63
1 changed files with 1 additions and 11 deletions

View File

@ -1,17 +1,7 @@
<script src="https://kit.fontawesome.com/1fa49cfdc9.js" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/1fa49cfdc9.js" crossorigin="anonymous"></script>
<script> <script>
function MergeUrl(){ function MergeUrl(){
var temp_url = location.href location.href = '<%= merge_admin_journal_papers_path %>'
if (temp_url.search("locale=")!=-1){
var tp=temp_url.lastIndexOf('/')
location.href = temp_url.substring(0,tp+1)+"merge/"+temp_url.substring(tp+1)
}
else if (temp_url.slice(-1)=='/'){
location.href = location.href + "merge"
}
else{
location.href = location.href + "/merge"
}
} }
</script> </script>
<table class="table main-list"> <table class="table main-list">