Skip to content
Snippets Groups Projects
Commit 4cc8b3b4 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

shift+click and ctrl+click without updating current page

parent 45fa04a3
No related branches found
No related tags found
No related merge requests found
......@@ -472,23 +472,29 @@ export default {
},
article_link_click: function(item) {
if (this.article && this.article.article_id == item.article_id){
this.article_key++
this.replace_history()
if (!this.$route.hash) {
window.scrollTo(0,0)
}
let event = window.event
if (!(event.ctrlKey || event.shiftKey)) {
if (this.article && this.article.article_id == item.article_id){
this.article_key++
this.replace_history()
if (!this.$route.hash) {
window.scrollTo(0,0)
}
}else{
navigate_to_article(this, item.source)
if (!this.$route.hash) {
window.scrollTo(0,0)
}else{
navigate_to_article(this, item.source)
if (!this.$route.hash) {
window.scrollTo(0,0)
}
}
}
},
details_click: function(item) {
this.article = item.article
this.replace_history()
let event = window.event
if (!(event.ctrlKey || event.shiftKey)) {
this.article = item.article
this.replace_history()
}
},
return_to_results: function() {
this.article = null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment