Fix quickaccess active indicator for folders with spaces
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
7648bb05e9
commit
d54635fc7d
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue