From 13466665699dc1d38a104cefbf85f4ca1ac01540 Mon Sep 17 00:00:00 2001 From: Rolux Date: Tue, 5 Jan 2016 21:52:41 +0530 Subject: [PATCH] fix software update panel (layout) --- static/js/appDialog.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/static/js/appDialog.js b/static/js/appDialog.js index 87d55f6..75d3138 100644 --- a/static/js/appDialog.js +++ b/static/js/appDialog.js @@ -35,25 +35,23 @@ oml.ui.appDialog = function() { }) .appendTo($logo); if (id == 'update') { - $content.html('

' + title + '

'); - var $update = Ox.Element() - .css({ - paddingTop: '4px', - paddingBottom: '16px' - }).appendTo($content); + var titleHTML = '

' + title + '

' + $content.html(titleHTML); oml.api.getVersion(function(response) { if (response.data.update) { if (response.data.current == 'git') { - $update.html( - '

' + $content.html( + titleHTML + + '

' + Ox._('A new version of Open Media Library is available in git.') + '

' + Ox._('To update run:') + ' ./ctl update') ); } else { - $update.html( - '

' + $content.html( + titleHTML + + '

' + Ox._('You are running Version {0}.', [response.data.current]) + '

' + Ox._('A new version of Open Media Library is available.') @@ -78,14 +76,16 @@ oml.ui.appDialog = function() { } } else { if (response.data.current == 'git') { - $update.html( - '

' + $content.html( + titleHTML + + '

' + Ox._('You are up to date.') + '

' ); } else { - $update.html( - '

' + $content.html( + titleHTML + + '

' + Ox._('You are running Version {0}.', [response.data.current]) + '

' + Ox._('You are up to date.')