From 7e99c16f014e1be5b72fabc888cd520cd7d11f40 Mon Sep 17 00:00:00 2001 From: Heiko Kernbach Date: Thu, 6 Nov 2014 15:09:28 +0100 Subject: [PATCH] fixed type, fixed event not triggering refiltering documents --- .../aardvark/frontend/js/collections/arangoDocuments.js | 2 +- js/apps/system/aardvark/frontend/js/views/documentsView.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/apps/system/aardvark/frontend/js/collections/arangoDocuments.js b/js/apps/system/aardvark/frontend/js/collections/arangoDocuments.js index e8de4c76ce..e271991fb4 100644 --- a/js/apps/system/aardvark/frontend/js/collections/arangoDocuments.js +++ b/js/apps/system/aardvark/frontend/js/collections/arangoDocuments.js @@ -254,7 +254,7 @@ return queryObj; }, - updloadDocuments : function (file) { + uploadDocuments : function (file) { var result; $.ajax({ type: "POST", diff --git a/js/apps/system/aardvark/frontend/js/views/documentsView.js b/js/apps/system/aardvark/frontend/js/views/documentsView.js index a843da16d7..670ed472d8 100644 --- a/js/apps/system/aardvark/frontend/js/views/documentsView.js +++ b/js/apps/system/aardvark/frontend/js/views/documentsView.js @@ -81,7 +81,7 @@ "keyup #createEdge" : "listenKey", "click .key" : "nop", "keyup" : "returnPressedHandler", - "keydown .filterValue" : "filterValueKeydown", + "keydown .queryline input" : "filterValueKeydown", "click #importModal" : "showImportModal", "click #resetView" : "resetView", "click #confirmDocImport" : "startUpload", @@ -184,7 +184,7 @@ var result; if (this.allowUpload === true) { this.showSpinner(); - result = this.collection.updloadDocuments(this.file); + result = this.collection.uploadDocuments(this.file); if (result !== true) { this.hideSpinner(); if (result.substr(0, 5 ) === "Error") {