the variable added is numberpattern, and is get from the document.
---
 .../prog/en/modules/serials/subscription-add.tmpl  |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl 
b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl
index d4ab0f7..ec835cc 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl
@@ -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;
-- 
1.5.6.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to