tree: add an input for filtering displayed widget by id
This commit is contained in:
parent
9dae9c5c9d
commit
420bd55e7a
6 changed files with 70 additions and 6 deletions
|
|
@ -56,7 +56,7 @@ module.exports = {
|
|||
if (selector.indexOf(' ') === -1 && selector.indexOf(',') === -1) {
|
||||
if (selector.indexOf('#') === 0 && context === document) {
|
||||
nodes = [document.getElementById(selector.substr(1, selector.length - 1))]
|
||||
} else if (selector.indexOf('.') === 0) {
|
||||
} else if (selector.lastIndexOf('.') === 0) {
|
||||
nodes = context.getElementsByClassName(selector.substr(1, selector.length - 1))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue