[Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/includes co... [dev_week]

Owen Leonard oleonard at athenscounty.lib.oh.us
Wed Oct 4 21:24:15 CEST 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Owen Leonard <oleonard>	06/10/04 19:24:15

Modified files:
	koha-tmpl/intranet-tmpl/npl/en/includes: common.js.inc 
	                                         masthead.inc 

Log message:
	Attaching help function to link ID, removing onclick

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/npl/en/includes/common.js.inc?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.1.2.2&r2=1.1.2.1.2.3
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/npl/en/includes/masthead.inc?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.2.2.1&r2=1.1.2.2.2.2

Patches:
Index: common.js.inc
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/intranet-tmpl/npl/en/includes/Attic/common.js.inc,v
retrieving revision 1.1.2.1.2.2
retrieving revision 1.1.2.1.2.3
diff -u -b -r1.1.2.1.2.2 -r1.1.2.1.2.3
--- common.js.inc	25 Sep 2006 13:27:07 -0000	1.1.2.1.2.2
+++ common.js.inc	4 Oct 2006 19:24:15 -0000	1.1.2.1.2.3
@@ -12,6 +12,16 @@
   }
 }
 
+function preparehelp(){
+	if (!document.getElementById) return false;
+	if(!document.getElementById("helper")) return false;
+	var helper = document.getElementById("helper");
+	helper.onclick = function(){
+		Help();
+		return false;
+	}
+}
+
 function Help() {
 	newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
 }
@@ -63,9 +73,6 @@
 		}
 	}
 
-	addLoadEvent(verify_images);
-	addLoadEvent(mainfocus);
-	
 function CheckAll() {
 	count = document.mainform.elements.length;
     for (i=0; i < count; i++) {
@@ -76,4 +83,8 @@
 		}
 	}
 }
+
+	addLoadEvent(verify_images);
+	addLoadEvent(mainfocus);
+	addLoadEvent(preparehelp);
 </script>
\ No newline at end of file

Index: masthead.inc
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/intranet-tmpl/npl/en/includes/Attic/masthead.inc,v
retrieving revision 1.1.2.2.2.1
retrieving revision 1.1.2.2.2.2
diff -u -b -r1.1.2.2.2.1 -r1.1.2.2.2.2
--- masthead.inc	4 Oct 2006 18:42:50 -0000	1.1.2.2.2.1
+++ masthead.inc	4 Oct 2006 19:24:15 -0000	1.1.2.2.2.2
@@ -1,2 +1,2 @@
 <h1 id="libraryname"><a href="/cgi-bin/koha/mainpage.pl">Koha Intranet<!-- TMPL_IF NAME="branchname" -->: <!-- TMPL_VAR name="branchname" --><!-- /TMPL_IF --></a></h1>
-<div id="help"><span class="loggedin"><!-- TMPL_IF NAME="loggedinusername" -->Logged in as: <span class="loggedinusername"><!-- TMPL_VAR NAME="loggedinusername" --></span> | <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log Out</a> | <!-- TMPL_ELSE -->You are not logged in | <!-- /TMPL_IF --></span><a href="/cgi-bin/koha/help.pl" onclick="Help(); return false;">[ ? ]</a></div>
\ No newline at end of file
+<div id="help"><span class="loggedin"><!-- TMPL_IF NAME="loggedinusername" -->Logged in as: <span class="loggedinusername"><!-- TMPL_VAR NAME="loggedinusername" --></span> | <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log Out</a> | <!-- TMPL_ELSE -->You are not logged in | <!-- /TMPL_IF --></span><a href="/cgi-bin/koha/help.pl" id="helper">[ ? ]</a></div>
\ No newline at end of file





More information about the Koha-cvs mailing list