* Thu Sep 25 2025 Brian Read <brianr@koozali.org> 11.0.0-118.sme
- Remove inline style for legacy panel [SME: 13177]
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
.legacy-embedded {
|
||||
width: 99%;
|
||||
height: 600px; /* fallback default, matches your $height default */
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var obj = document.getElementById('legacy-embedded');
|
||||
if (obj && obj.dataset.legacyHeight) {
|
||||
obj.style.height = obj.dataset.legacyHeight;
|
||||
}
|
||||
});
|
@@ -14,10 +14,18 @@
|
||||
</div>
|
||||
% }
|
||||
<h1> Embedded - <%= $title %></h1><br>
|
||||
<p>If the legacy panel does not appear, then you may not be logged into the original Server manager.<br />You can log in by clicking <a href="/server-manager" target='_blank'>here</a>. Or by clicking on the "Legacy SM" button at the top of the window.</p>
|
||||
% my $height = $c->stash('height') | '600px';
|
||||
<p>If the legacy panel does not appear, then you may not be logged into the original Server manager.<br />You can log in by clicking <a href="/server-manager" target='_blank'>here</a>.</p>
|
||||
% my $height = $c->stash('height') || '600px';
|
||||
% if ( $height !~ /px$/ ) { $height = $height . 'px'; }
|
||||
<object id="legacy-embedded" class="legacy-embedded" data="<%= $c->stash('modul') %>" style="width:99%;height:<%= $height %>;" title="<%= $c->stash('title') %>" type="text/html" ><%= $c->stash('title') %> not found</object>
|
||||
% # Add the height as a data attribute
|
||||
<object id="legacy-embedded"
|
||||
class="legacy-embedded"
|
||||
data="<%= $c->stash('modul') %>"
|
||||
data-legacy-height="<%= $height %>"
|
||||
title="<%= $c->stash('title') %>"
|
||||
type="text/html">
|
||||
<%= $c->stash('title') %> not found
|
||||
</object>
|
||||
</div>
|
||||
|
||||
% end
|
||||
% end
|
Reference in New Issue
Block a user