saging is case insensitive, on any position.

This commit is contained in:
Nicolas Stepien 2011-06-17 14:32:25 +02:00
parent 35ebb753a7
commit 148dd165d1
2 changed files with 2 additions and 2 deletions

View File

@ -1180,7 +1180,7 @@
if (isQR) { if (isQR) {
$('#error').textContent = ''; $('#error').textContent = '';
} }
qr.sage = $('input[name=email]', form).value === 'sage'; qr.sage = /sage/i.test($('input[name=email]', form).value);
if (isQR) { if (isQR) {
return qr.autohide.set(); return qr.autohide.set();
} }

View File

@ -922,7 +922,7 @@ qr =
if isQR if isQR
$('#error').textContent = '' $('#error').textContent = ''
qr.sage = $('input[name=email]', form).value == 'sage' qr.sage = /sage/i.test $('input[name=email]', form).value
if isQR if isQR
qr.autohide.set() qr.autohide.set()