From efb7a2ae58ff019b159981f4eeea078b30aa174e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 15 Apr 2013 11:42:46 +0200 Subject: [PATCH] Define variable just once --- js/functions.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/functions.js b/js/functions.js index ce3294146d..7f155ea3ab 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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('
' + message + '
'); }