Fix quickaccess active indicator for folders with spaces

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-08-09 18:31:02 +02:00
parent 7648bb05e9
commit d54635fc7d
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@
* @param array options "silent" to not trigger event * @param array options "silent" to not trigger event
*/ */
setActiveItem: function (itemId, options) { 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 itemDir = currentItem.data('dir');
var itemView = currentItem.data('view'); var itemView = currentItem.data('view');
var oldItemId = this._activeItem; var oldItemId = this._activeItem;
@ -135,7 +135,7 @@
* Returns whether a given item exists * Returns whether a given item exists
*/ */
itemExists: function (itemId) { itemExists: function (itemId) {
return this.$el.find('li[data-id=' + itemId + ']').length; return this.$el.find('li[data-id="' + itemId + '"]').length;
}, },
/** /**