A pas de S quand il n'y en as qu'un

This commit is contained in:
Michel Roux 2013-10-17 11:46:33 +02:00
parent 1858205aff
commit 857bab8bcf

View File

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