might not be loaded

This commit is contained in:
j 2024-09-16 17:23:21 +01:00
parent 18cbf0ec9c
commit 1b1442e664

View file

@ -137,24 +137,26 @@ pandora.ui.helpDialog = function() {
that.select = function(id) {
var img, $img;
$text.html(text[id || 'help']).scrollTop(0);
img = $text.find('img');
if (img) {
$img = $(img);
$img.replaceWith(
$image = Ox.ImageElement(
Ox.extend(getImageSize(), {src: $img.attr('src')})
)
.css({borderRadius: '8px'})
);
if ($text) {
$text.html(text[id || 'help']).scrollTop(0);
img = $text.find('img');
if (img) {
$img = $(img);
$img.replaceWith(
$image = Ox.ImageElement(
Ox.extend(getImageSize(), {src: $img.attr('src')})
)
.css({borderRadius: '8px'})
);
}
$text.find('td:first-child')
.css({
height: '16px',
paddingRight: '8px',
textAlign: 'right',
whiteSpace: 'nowrap'
});
}
$text.find('td:first-child')
.css({
height: '16px',
paddingRight: '8px',
textAlign: 'right',
whiteSpace: 'nowrap'
});
return that;
}