Fixed some debouncing issues

merge-requests/154/head
Eliot Berriot 2017-12-17 20:24:48 +01:00
rodzic e1817cc5c2
commit 0c5f151fc1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
3 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -103,7 +103,7 @@ export default {
$('.ui.dropdown').dropdown()
},
methods: {
updateQueryString: function () {
updateQueryString: _.debounce(function () {
this.$router.replace({
query: {
query: this.query,
@ -112,7 +112,7 @@ export default {
ordering: this.getOrderingAsString()
}
})
},
}, 500),
fetchData: _.debounce(function () {
var self = this
this.isLoading = true

Wyświetl plik

@ -27,7 +27,7 @@ export default {
let wrapper = function (event) {
// we check here the event is not triggered from an input
// to avoid collisions
if (!$(event.target).is(':input, [contenteditable]')) {
if (!$(event.target).is('.field, :input, [contenteditable]')) {
handler(event)
}
}

Wyświetl plik

@ -50,7 +50,8 @@ export default new Router({
component: Favorites,
props: (route) => ({
defaultOrdering: route.query.ordering,
defaultPage: route.query.page
defaultPage: route.query.page,
defaultPaginateBy: route.query.paginateBy
})
},
{