This commit is contained in:
Michel Roux 2013-11-01 00:49:32 +01:00
parent 047078a09e
commit 87377f0c62

View File

@ -32,7 +32,7 @@ function callRequest(action, section, message) {
var splitLabel = xhr.responseText.split("\n").reverse();
label.classList.remove('label-warning');
if (splitLabel[1].match(/nothing to commit/) || xhr.responseText.match(/by [0-9]* commit/)) {
if (!splitLabel[1].match(/nothing to commit/) || xhr.responseText.match(/by [0-9]* commit/)) {
label.classList.add('label-important');
label.innerHTML = 'Update needed';
} else {