forked from 0x2620/pandora
might not be loaded
This commit is contained in:
parent
18cbf0ec9c
commit
1b1442e664
1 changed files with 19 additions and 17 deletions
|
@ -137,24 +137,26 @@ pandora.ui.helpDialog = function() {
|
||||||
|
|
||||||
that.select = function(id) {
|
that.select = function(id) {
|
||||||
var img, $img;
|
var img, $img;
|
||||||
$text.html(text[id || 'help']).scrollTop(0);
|
if ($text) {
|
||||||
img = $text.find('img');
|
$text.html(text[id || 'help']).scrollTop(0);
|
||||||
if (img) {
|
img = $text.find('img');
|
||||||
$img = $(img);
|
if (img) {
|
||||||
$img.replaceWith(
|
$img = $(img);
|
||||||
$image = Ox.ImageElement(
|
$img.replaceWith(
|
||||||
Ox.extend(getImageSize(), {src: $img.attr('src')})
|
$image = Ox.ImageElement(
|
||||||
)
|
Ox.extend(getImageSize(), {src: $img.attr('src')})
|
||||||
.css({borderRadius: '8px'})
|
)
|
||||||
);
|
.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;
|
return that;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue