Skip to content

Commit

Permalink
Fixes #36860 - Remove workaround for fixing layout rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga authored and ekohl committed Oct 26, 2023
1 parent 0d91a7c commit 405808d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ $(document).on('click', 'a[disabled="disabled"]', function(event) {
});

function onContentLoad() {
tfm.store.observeStore('layout', tfm.nav.showContent);

if ($('input[focus_on_load=true]').length > 0) {
$('input[focus_on_load]')
.first()
Expand Down
4 changes: 0 additions & 4 deletions app/assets/stylesheets/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ select {
cursor: auto;
}

#main > #content {
display: none;
}

.used_by_hosts {
color: #000 !important;
cursor: auto;
Expand Down
14 changes: 0 additions & 14 deletions webpack/assets/javascripts/foreman_navigation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-disable jquery/no-show */

import $ from 'jquery';
import URI from 'urijs';
import { push } from 'connected-react-router';
import store from './react_app/redux';
Expand Down Expand Up @@ -36,14 +33,3 @@ export const hideLoading = () => {
export const changeActive = () => {
deprecate('changeActive', '', '3.8');
};

export function showContent(layout, unsubscribe) {
const content = () => {
$('#content').show();
unsubscribe();
};
// workaround for pages with no layout object
if (layout.items.length && !layout.isLoading) {
content();
} else if ($('#layout').length === 0) content();
}

0 comments on commit 405808d

Please sign in to comment.