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

cleanup

parent d74dc080
No related branches found
No related tags found
No related merge requests found
......@@ -161,11 +161,7 @@ function load_articles(self, query, offset, n, dict) {
else {
self.error = null
}
self.search_results[dict] = results
console.log("DICT", dict, "OFFSET", offset,"N", n, "RESULTS", results)
})
.catch(error => {
self.waiting_for_articles = false
......@@ -174,7 +170,6 @@ function load_articles(self, query, offset, n, dict) {
}
else {
self.search_results[dict] = []
console.log("NO")
}
}
return Promise.resolve()
......@@ -192,7 +187,6 @@ function navigate_to_query(self, word) {
let offset = 0
if (self.page) {
offset = 10 * (self.page -1)
console.log("PAGE", self.page)
}
if (self.pos_selected != "ALL") params.wc = self.pos_selected
api.get('articles?', {params}).then((response) => {
......@@ -294,7 +288,6 @@ export default {
let path = `/${this.lang}/search`
let pos = this.pos_param()
let query = {q: event.match || event.q}
console.log(pos)
if (pos != "all") query["pos"] = pos
if (this.scope) query["scope"] = this.scope
this.$router.push({path, query})
......@@ -323,9 +316,7 @@ export default {
let offset = 0
if (this.page) {
offset = 10 * (this.page -1)
console.log("PAGE", this.page)
}
console.log(query.q)
console.log(this)
let self = this
......@@ -365,7 +356,6 @@ export default {
},
update_lang_form: function (lang) {
console.log(this.article_info)
this.lang = lang
this.page = 1
this.reload_params()
......
......@@ -72,7 +72,6 @@ export default {
},
both_hash: function(){
console.log(this.both_dicts.length)
return this.both_dicts.reduce((hash, hit) => (hash + hit.article_id) % 10000, 0)
},
bm_hash: function(){
......
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