Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
In directory
james.mmbase.org:/tmp/cvs-serv12617/src/webapp/editors/editwizards_new/xsl
Modified Files:
wizard.xsl
Log Message:
CMSC-1180 Newsletter: change newsletter schedule mechanism
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
See also: http://www.mmbase.org/jira/browse/CMSC-1180
Index: wizard.xsl
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/wizard.xsl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- wizard.xsl 16 Oct 2008 08:33:03 -0000 1.17
+++ wizard.xsl 15 Dec 2008 05:08:37 -0000 1.18
@@ -774,14 +774,15 @@
</xsl:template>
<xsl:template name="ftype-calendar">
- <nobr><select name="calendar-type" id="calendar-type">
+ <nobr><select name="calendar-type" id="calendar-type"
onchange="resetCalendar(this.value,'{...@fieldname}')">
+ <option value="0"><xsl:value-of select="$prompt_newsletter_never"
/></option>
<option value="1"><xsl:value-of select="$prompt_newsletter_once"
/></option>
<option value="2"><xsl:value-of select="$prompt_newsletter_daily"
/></option>
<option value="3"><xsl:value-of select="$prompt_newsletter_weekly"
/></option>
<option value="4"><xsl:value-of select="$prompt_newsletter_monthly"
/></option>
</select>  
<input type="hidden" name="{...@fieldname}" value="{value}"
title="new-calendar" id="{...@fieldname}"/>
- <a href="#" class="button" onclick="javascript:window.open
('calendar.jsp?i...@fieldname}&type='+document.getElementById('calendar-type').value,
'calendar', 'height=400, width=500, top='+eval((window.screen.availHeight -
400)/2)+', left='+eval((window.screen.availWidth - 500)/2)+',toolbar=no,
menubar=no, scrollbars=no, location=no, status=no')"><xsl:value-of
select="$prompt_newsletter_select" /> </a> <a class="button" href="#"
onclick="javascript:document.getElementById('calendar-expression').innerHTML='';document.getElementById('{...@fieldname}').value=''"><xsl:value-of
select="$prompt_newsletter_delete" /></a></nobr>
+ <a href="#" id="calendarSelect" class="button"
onclick="javascript:window.open
('calendar.jsp?i...@fieldname}&type='+document.getElementById('calendar-type').value,
'calendar', 'height=400, width=500, top='+eval((window.screen.availHeight -
400)/2)+', left='+eval((window.screen.availWidth - 500)/2)+',toolbar=no,
menubar=no, scrollbars=no, location=no, status=no')"><xsl:value-of
select="$prompt_newsletter_select" /> </a> <a class="button" href="#"
id="calendarDelete"
onclick="javascript:document.getElementById('calendar-expression').innerHTML='';document.getElementById('{...@fieldname}').value=''"><xsl:value-of
select="$prompt_newsletter_delete" /></a></nobr>
<div id="calendar-expression"></div>
</xsl:template>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs