Merge pull request #10626 from nextcloud/bugfix/noid/quickaccess-spaces

Fix quickaccess active indicator for folders with spaces
This commit is contained in:
Roeland Jago Douma 2018-08-09 19:44:17 +02:00 committed by GitHub
commit 7dc4fadc21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
},
/**