(bug #2933) change popup names containing space chars
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Thu, 29 Jan 2009 14:29:19 +0000 (15:29 +0100)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 6 Mar 2009 14:37:30 +0000 (08:37 -0600)
This patch change all call to open.window that have a window identifier which contains space chars.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/includes/error-top.inc
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/labs_theses.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl

index a1d3826..5375ade 100644 (file)
@@ -16,7 +16,7 @@ window.open(targeturl,windowname,"height=480,width=640,scrollbars,resizable")
 
 <script language="JavaScript" type="text/javascript">
 function Help() {
-       newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
+       newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
 }
 </script>
 
index 76203e9..425e373 100644 (file)
@@ -4,7 +4,7 @@
 <script language="JavaScript" type="text/javascript">
 //<![CDATA[
 function Help() {
-    newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
+    newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
 }
 
 function addauthority() {
index db7c409..c27a01f 100644 (file)
@@ -85,7 +85,7 @@ function AddField(field,cntrepeatfield) {
 
 function Dopop(link,i) {
     defaultvalue = document.getElementById(i).value;
-    window.open(link+"&result="+defaultvalue,"value builder",'width=700,height=550,toolbar=false,scrollbars=yes');
+    window.open(link+"&result="+defaultvalue,"valuebuilder",'width=700,height=550,toolbar=false,scrollbars=yes');
 }
 
 function ExpandField(index) {
index 774e4d8..5980d9e 100644 (file)
@@ -43,7 +43,7 @@ function showChildren(mynumber) {
   }
 }
 function Help() {
-    newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
+    newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
 }
 
 function addauthority() {
index 67a394f..e49a997 100644 (file)
@@ -11,7 +11,7 @@ function confirm_deletion(id) {
     }
 }
 function Help() {
-    newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
+    newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
 }
 
 function addauthority() {
index 2356132..c875f15 100644 (file)
@@ -54,7 +54,7 @@ function Check(){
 
 function Dopop(link,i) {
     defaultvalue = document.getElementById(i).value;
-    window.open(link+"&result="+defaultvalue,"value builder",'width=700,height=550,toolbar=false,scrollbars=yes');
+    window.open(link+"&result="+defaultvalue,"valuebuilder",'width=700,height=550,toolbar=false,scrollbars=yes');
 }
 
 /**
@@ -171,7 +171,7 @@ function openAuth(tagsubfieldid,authtype) {
             }      
         }
     }           
-       newin=window.open("../authorities/auth_finder.pl?authtypecode="+  authtype+ "&index="+tagsubfieldid+"&mainmainstring="+encodeURI(mainmainstring)+"&mainstring="+encodeURI(mainstring), "value builder",'width=700,height=550,toolbar=false,scrollbars=yes');
+       newin=window.open("../authorities/auth_finder.pl?authtypecode="+  authtype+ "&index="+tagsubfieldid+"&mainmainstring="+encodeURI(mainmainstring)+"&mainstring="+encodeURI(mainstring), "_blank",'width=700,height=550,toolbar=false,scrollbars=yes');
 }
 
 
index 9eacb7a..46b32c7 100644 (file)
@@ -47,7 +47,7 @@ function Check(f) {
 }
 function Dopop(link,i) {
     defaultvalue=document.forms[0].field_value[i].value;
-    newin=window.open(link+"&result="+defaultvalue,"value builder",'width=500,height=400,toolbar=false,scrollbars=yes');
+    newin=window.open(link+"&result="+defaultvalue,"valuebuilder",'width=500,height=400,toolbar=false,scrollbars=yes');
 }
 
 function confirm_deletion(biblionumber,itemnumber) {
index ef17e48..5312bff 100644 (file)
@@ -14,7 +14,7 @@ function openWindow(targeturl, windowname) {
 window.open(targeturl,windowname,"height=480,width=640,scrollbars,resizable")
 }
 function Help() {
-       newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
+       newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
 }
 // end hiding -->
 </script>
index b1d0b9c..73aedce 100644 (file)
@@ -99,7 +99,7 @@
        }
 
        function Help() {
-               newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
+               newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
        }
        $(document).ready(function() {
                $("#branch").change(function(){