parent
f2bd5d605e
commit
26c8c5f03f
1 changed files with 9 additions and 9 deletions
|
|
@ -526,6 +526,15 @@ $(function() {
|
|||
onTabChange(OCTOPRINT_INITIAL_TAB);
|
||||
onAfterTabChange(OCTOPRINT_INITIAL_TAB, undefined);
|
||||
|
||||
var changeTab = function() {
|
||||
var hashtag = window.location.hash;
|
||||
|
||||
var tab = $('#tabs').find('a[href="' + hashtag + '"]');
|
||||
if (tab) {
|
||||
tab.tab("show");
|
||||
}
|
||||
};
|
||||
|
||||
// Fix input element click problems on dropdowns
|
||||
$(".dropdown input, .dropdown label").click(function(e) {
|
||||
e.stopPropagation();
|
||||
|
|
@ -539,15 +548,6 @@ $(function() {
|
|||
// reload overlay
|
||||
$("#reloadui_overlay_reload").click(function() { location.reload(); });
|
||||
|
||||
var changeTab = function()
|
||||
{
|
||||
var hashtag = window.location.hash;
|
||||
|
||||
var tab = $('#tabs a[href="' + hashtag + '"]');
|
||||
tab.tab("show");
|
||||
onTabChange(hashtag);
|
||||
};
|
||||
|
||||
//~~ final initialization - passive login, settings fetch, view model binding
|
||||
|
||||
if (!_.has(viewModelMap, "settingsViewModel")) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue