version formatting

This commit is contained in:
rlx 2016-01-16 20:16:50 +05:30
parent d7975a870b
commit 23d401b3f2

View file

@ -32,7 +32,7 @@ oml.ui.updateDialog = function() {
oml.version != 'git' oml.version != 'git'
? Ox._( ? Ox._(
'You are running Open Media Library version {0}.<br><br>', 'You are running Open Media Library version {0}.<br><br>',
[oml.version] [oml.version.split('-')[1]]
) )
: Ox._( : Ox._(
'You are running the development version of ' 'You are running the development version of '
@ -133,7 +133,7 @@ oml.ui.updateDialog = function() {
} else { } else {
$text.append(Ox._( $text.append(Ox._(
'A newer version ({0}) is available.', 'A newer version ({0}) is available.',
[result.data.version] [result.data.version.split('-')[1]]
)); ));
$closeButton.hide(); $closeButton.hide();
$dontUpdateButton.show(); $dontUpdateButton.show();