1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

Fix collapse on hostname with "."

Fix "Error: Syntax error, unrecognized expression: [host=pc.local]"
This commit is contained in:
Roman Kravchuk 2018-11-25 11:27:30 +02:00 committed by GitHub
parent cd940c99e5
commit 91598357dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,7 +127,7 @@
function hide_host_instances(host) { function hide_host_instances(host) {
var rows = $('table tr'); var rows = $('table tr');
host_rows = rows.filter('[host='+host+']'); host_rows = rows.filter("[host='"+host+"']");
host_rows.toggle(); host_rows.toggle();
$('span#collapse_host_instances_'+host).toggleClass("glyphicon-chevron-down").toggleClass("glyphicon-chevron-up"); $('span#collapse_host_instances_'+host).toggleClass("glyphicon-chevron-down").toggleClass("glyphicon-chevron-up");
} }