[Koha-patches] [PATCH] [bug #2831] Add a variable, that create a js error, and make the script not working.
Nahuel Angelinetti
nahuel.angelinetti at biblibre.com
Mon Dec 1 16:35:44 CET 2008
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 2f2bd50..fdb4787 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
@@ -626,7 +626,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;
@@ -647,6 +647,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
More information about the Koha-patches
mailing list