Define variable just once

This commit is contained in:
Michal Čihař 2013-04-15 11:42:46 +02:00
parent e07a890905
commit efb7a2ae58

View File

@ -136,11 +136,10 @@ function PMA_current_version(data)
escapeHtml(data['version']),
escapeHtml(data['date'])
);
var klass = 'notice';
if (Math.floor(latest / 10000) === Math.floor(current / 10000)) {
/* Security update */
var klass = 'error';
} else {
var klass = 'notice';
klass = 'error';
}
$('#maincontainer').after('<div class="' + klass + '">' + message + '</div>');
}