From d54635fc7db2415b293d7d7582d42dbda56059f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 9 Aug 2018 18:31:02 +0200 Subject: [PATCH] Fix quickaccess active indicator for folders with spaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/js/navigation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js index 7a89159c1f..9fc2180c92 100644 --- a/apps/files/js/navigation.js +++ b/apps/files/js/navigation.js @@ -92,7 +92,7 @@ * @param array options "silent" to not trigger event */ setActiveItem: function (itemId, options) { - var currentItem = this.$el.find('li[data-id=' + itemId + ']'); + var currentItem = this.$el.find('li[data-id="' + itemId + '"]'); var itemDir = currentItem.data('dir'); var itemView = currentItem.data('view'); var oldItemId = this._activeItem; @@ -135,7 +135,7 @@ * Returns whether a given item exists */ itemExists: function (itemId) { - return this.$el.find('li[data-id=' + itemId + ']').length; + return this.$el.find('li[data-id="' + itemId + '"]').length; }, /**