(bug #2831) Add a variable, that create a js error, and make the script not working.

the variable added is numberpattern, and is get from the document.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Nahuel ANGELINETTI 2008-12-11 16:48:16 +01:00 committed by Galen Charlton
parent 7588809b0d
commit a43c8408e4
1 changed files with 2 additions and 1 deletions

View File

@ -628,7 +628,7 @@ function irregularity_check(){
errortext +=expected+_(" issues expected, ")+rollover+_(" were entered. <br \/>Please indicate which date(s) an issue is not expected<br \/>");
irregular_issues.numskipped = expected - rollover;
}
errortext +="<select multiple id='irregularity_select' name='irregularity_select' onchange='irregular_issues.update();'>\n";
errortext +="<select multiple id='irregularity_select' name='irregularity_select' onchange='irregular_issues.update();'>\n";
errortext +=irregular_options(periodicity);
errortext += "<\/select>\n <textarea rows='6' width='18' id='irregularity_summary' name='irregularity_summary' value='foo' />";
error=errortext;
@ -649,6 +649,7 @@ function irregular_options(periodicity){
var titles;
var count;
var errortext='';
var numberpattern = document.getElementById('numberpattern').value;
if(periodicity == 1) {
expected = 7;
titles = irregular_issues.daynames;