EduploneExam/skins/EduploneExam exam_fillgap_edit.cpt,1.1,1.2
"Fabian K." <[email protected]> Thu, 31 Mar 2005 12:23:41 +0000
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneExam/skins/EduploneExam
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10361/skins/EduploneExam
Modified Files:
exam_fillgap_edit.cpt
Log Message:
changed highlightGap() function to javascript styleguide
Index: exam_fillgap_edit.cpt
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/skins/EduploneExam/exam_fillgap_edit.cpt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** exam_fillgap_edit.cpt 31 Mar 2005 00:19:57 -0000 1.1
--- exam_fillgap_edit.cpt 31 Mar 2005 12:23:38 -0000 1.2
***************
*** 38,42 ****
</tal:block>
</metal:head>
!
<!--metal:head fill-slot="javascript_head_slot">
<tal:block define="macro here/archetypes_custom_js/macros/javascript_head | nothing"
--- 38,42 ----
</tal:block>
</metal:head>
!
<!--metal:head fill-slot="javascript_head_slot">
<tal:block define="macro here/archetypes_custom_js/macros/javascript_head | nothing"
***************
*** 70,96 ****
media="all">
! .exam_fg_highlighted {
background-color:#cccccc; i do not know, why this is... firefox seems to ignore first class}
!
! .exam_fg_isGap {
background-color:#dedede; }
! .exam_fg_highlighted {
background-color:#ee9900; }
!
</style>
<script metal:fill-slot="javascript_head_slot" language="javascript">
!
function highlightGap(nr){
! oldNr=document.forms['gapEditForm'].gapWordIndex.value;
! if(oldNr){
! document.getElementById('gapLink_' + oldNr ).style.backgroundColor='#FFFFFF';
! }
! document.forms['gapEditForm'].gapWordIndex.value=nr;
! gL=document.getElementById('gapLink_' + nr);
! gL.style.backgroundColor='#ee9900';
}
--- 70,96 ----
media="all">
! .exam_fg_highlighted {
background-color:#cccccc; i do not know, why this is... firefox seems to ignore first class}
!
! .exam_fg_isGap {
background-color:#dedede; }
! .exam_fg_highlighted {
background-color:#ee9900; }
!
</style>
<script metal:fill-slot="javascript_head_slot" language="javascript">
!
function highlightGap(nr){
! oldNr = document.forms['gapEditForm'].gapWordIndex.value;
! if(oldNr) {
! document.getElementById('gapLink_' + oldNr ).style.backgroundColor='#FFFFFF';
! }
! document.forms['gapEditForm'].gapWordIndex.value = nr;
! gL = document.getElementById('gapLink_' + nr);
! gL.style.backgroundColor = '#ee9900';
}
***************
*** 101,105 ****
<metal:use_header use-macro="header_macro" />
<metal:use_typedescription use-macro="typedescription_macro" />
!
<fieldset tal:define="BaseTextList python: here.aq_parent.getBasetext().split(' ')">
<legend>BaseText</legend>
--- 101,105 ----
<metal:use_header use-macro="header_macro" />
<metal:use_typedescription use-macro="typedescription_macro" />
!
<fieldset tal:define="BaseTextList python: here.aq_parent.getBasetext().split(' ')">
<legend>BaseText</legend>
***************
*** 137,141 ****
<form name="gapEditForm">
!
new:<input type="text" name="gapWordIndex" tal:attributes="value python:here.getGapPosition(here.getId())"/>
--- 137,141 ----
<form name="gapEditForm">
!
new:<input type="text" name="gapWordIndex" tal:attributes="value python:here.getGapPosition(here.getId())"/>
-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30