@@ -133,34 +105,6 @@ function navigate_to_article(self, source) {
...
@@ -133,34 +105,6 @@ function navigate_to_article(self, source) {
})
})
}
}
/*
function navigate_to_search(self, query) {
axios.get(self.api_pref + 'search?q=' + query, { headers: {"x-api-key":"ZkYiyRVXxH86ijsvhx3cH4SY5Iik2ijI3BKVJGMm"}}) // API-key to be removed or reimplemented with a ci-variable with the new API
.then(function(response){
self.search_results = response.data
if (! self.search_results.length) {
self.error = `Søk på «${query}» gir ingen treff i ${dicts[self.lang]}. Søk med * inne i ordet dersom du er usikker på skrivemåten. Bruk knappen «begge ordbøkene» om du har søkt i feil ordbok.`
} else {
self.error = null
}
})
.catch(function(error){
self.articles = null
if (error.response && error.response.status == 400) {