Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Språksamlingane
beta.ordbok.uib.no
Commits
c8e57185
Commit
c8e57185
authored
4 years ago
by
Ole Voldsæter
Browse files
Options
Downloads
Patches
Plain Diff
tracker klikk på referanser
parent
933894dd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/App.vue
+8
-2
8 additions, 2 deletions
src/App.vue
with
8 additions
and
2 deletions
src/App.vue
+
8
−
2
View file @
c8e57185
...
...
@@ -75,7 +75,11 @@ window.onpopstate = function (event) {
}
}
function
navigate_to_article
(
self
,
article_id
)
{
function
navigate_to_article
(
self
,
article_id
,
origin_article
,
origin_lemma
)
{
if
(
origin_article
)
{
self
.
$plausible
.
trackEvent
(
'
internal link incoming
'
,
{
props
:
{
origin
:
`
${
self
.
$route
.
params
.
lang
}
/
${
origin_article
}
/
${
origin_lemma
||
'
_
'
}
`
}})
}
axios
.
get
(
self
.
api_pref
+
''
+
article_id
)
.
then
(
function
(
response
){
self
.
article
=
response
.
data
...
...
@@ -171,9 +175,11 @@ export default {
this
.
article_key
++
history
.
replaceState
({
article
:
this
.
article
,
search_results
:
this
.
search_results
,
lang
:
this
.
lang
},
''
)
}
else
{
let
current_art_id
=
this
.
article
.
article_id
let
current_lemma
=
this
.
article
.
lemmas
[
0
].
lemma
this
.
article
=
{
lemmas
:
[],
body
:{
pronunciation
:
[],
definitions
:
[],
etymology
:
[]}}
this
.
waiting_for_articles
=
true
navigate_to_article
(
this
,
item
.
article_id
)
navigate_to_article
(
this
,
item
.
article_id
,
current_art_id
,
current_lemma
)
}
},
search_hit_click
:
function
(
article
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment