(bug #2831) Add a variable, that create a js error, and make the script not working.
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Thu, 11 Dec 2008 15:48:16 +0000 (16:48 +0100)
committerGalen Charlton <galen.charlton@liblime.com>
Thu, 11 Dec 2008 15:58:19 +0000 (09:58 -0600)
the variable added is numberpattern, and is get from the document.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl

index 83f4492..60e09d7 100644 (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;