mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Fixed url hash
This commit is contained in:
parent
86e1915a49
commit
1fcb49ffc8
4 changed files with 30 additions and 8 deletions
|
@ -1051,13 +1051,35 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
if (~$.inArray(hash, ['#media', '#autostart', '#xmledit', '#vncedit'])) {
|
||||
if (~$.inArray(hash, ['#media', '#clone', '#autostart', '#xmledit', '#vncsettings', '#migrate'])) {
|
||||
var btnsect = $('#navbtn>li>a');
|
||||
$(btnsect).each(function () {
|
||||
if ($(this).attr('href') === '#settings') {
|
||||
$(this).trigger('click');
|
||||
}
|
||||
});
|
||||
|
||||
var btn = $('#settings>div>ul>li>a');
|
||||
$(btn).each(function () {
|
||||
if ($(this).attr('href') === hash) {
|
||||
$(this).trigger('click');
|
||||
}
|
||||
});
|
||||
}
|
||||
if (~$.inArray(hash, ['#takesnapshot', '#restoresnapshot'])) {
|
||||
var btnsect = $('#navbtn>li>a');
|
||||
$(btnsect).each(function () {
|
||||
if ($(this).attr('href') === '#snapshots') {
|
||||
$(this).trigger('click');
|
||||
}
|
||||
});
|
||||
|
||||
var btn = $('#snapshots>div>ul>li>a');
|
||||
$(btn).each(function () {
|
||||
if ($(this).attr('href') === hash) {
|
||||
$(this).trigger('click');
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue