mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 23:19:40 +00:00
Fixed url hash
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user