[Koha-patches] [PATCH] Bug 3128 - followup and correction

Joe Atzberger joe.atzberger at liblime.com
Fri Apr 24 00:23:24 CEST 2009


---
 .../prog/en/modules/authorities/authorities.tmpl   |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tmpl
index 57af9dc..8b89e92 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tmpl
@@ -38,12 +38,13 @@ function AreMandatoriesNotOk(){
     var   tab = new Array();
     var label = new Array();
     <!-- TMPL_LOOP NAME='BIG_LOOP' --><!-- TMPL_LOOP NAME='innerloop' --><!-- TMPL_LOOP NAME='subfield_loop'--><!-- TMPL_IF NAME='mandatory'-->mandatories.push("<!-- TMPL_VAR NAME='id' -->");
-                        tab.push("<!-- TMPL_VAR NAME='number' -->");
-                        label.push("<!-- TMPL_VAR NAME='marc_lib' ESCAPE=JS-->");<!-- /TMPL_IF --><!-- /TMPL_LOOP --><!-- /TMPL_LOOP --><!-- /TMPL_LOOP -->
+        tab.push("<!-- TMPL_VAR NAME='number' -->");
+        label.push("<!-- TMPL_VAR NAME='marc_lib' ESCAPE=JS-->");
+    <!-- /TMPL_IF --><!-- /TMPL_LOOP --><!-- /TMPL_LOOP --><!-- /TMPL_LOOP -->
     var StrAlert = "";
     for(var i=0,len=mandatories.length; i<len ; i++){
         var id_string = mandatories[i];
-        alert (id_string);
+        // alert (id_string);
         if( ! $("#" + id_string).val() ){
             $("#" + id_string).attr('class','subfield_not_filled').focus();
             StrAlert += "\t* "+label[i]+_(" in tab ")+tab[i]+"\n";
@@ -51,9 +52,8 @@ function AreMandatoriesNotOk(){
     }
     if(StrAlert){
         return _("Can't save this record because the following field aren't filled :\n\n") + StrAlert;
-    } else {
-        return flag;
     }
+    return false;
 }
 
 /**
-- 
1.5.6.5




More information about the Koha-patches mailing list