From: <jon...@us...> - 2010-11-14 17:47:54
|
Revision: 30700 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=30700&view=rev Author: jonnybradley Date: 2010-11-14 17:47:48 +0000 (Sun, 14 Nov 2010) Log Message: ----------- [FIX] calendar: return false on all onclick JS Modified Paths: -------------- branches/6.x/templates/tiki-calendar_edit_item.tpl Modified: branches/6.x/templates/tiki-calendar_edit_item.tpl =================================================================== --- branches/6.x/templates/tiki-calendar_edit_item.tpl 2010-11-14 17:25:47 UTC (rev 30699) +++ branches/6.x/templates/tiki-calendar_edit_item.tpl 2010-11-14 17:47:48 UTC (rev 30700) @@ -92,7 +92,7 @@ <input type="hidden" name="recurrent" value="1"/> {tr}This event depends on a recurrence rule{/tr} {else} -<input type="checkbox" id="id_recurrent" name="recurrent" value="1" onclick="toggle('recurrenceRules');toggle('startdate');toggle('enddate');"{if $calitem.recurrenceId gt 0 or $recurrent eq 1}checked="checked"{/if}/><label for="id_recurrent">{tr}This event depends on a recurrence rule{/tr}</label> +<input type="checkbox" id="id_recurrent" name="recurrent" value="1" onclick="toggle('recurrenceRules');toggle('startdate');toggle('enddate');return false;"{if $calitem.recurrenceId gt 0 or $recurrent eq 1}checked="checked"{/if}/><label for="id_recurrent">{tr}This event depends on a recurrence rule{/tr}</label> {/if} {else} <span class="summary">{if $calitem.recurrenceId gt 0}{tr}This event depends on a recurrence rule{/tr}{else}{tr}This event is not recurrent{/tr}{/if}</span> @@ -229,7 +229,7 @@ <tr> <td style="border:0;padding-top:2px;vertical-align:middle"> {if $prefs.feature_jscalendar neq 'y' or $prefs.javascript_enabled neq 'y'} - <a href="#" onclick="document.f.Time_Hour.selectedIndex=(document.f.Time_Hour.selectedIndex+1);">{icon _id='plus_small' align='left' width='11' height='8'}</a> + <a href="#" onclick="document.f.Time_Hour.selectedIndex=(document.f.Time_Hour.selectedIndex+1);return false;">{icon _id='plus_small' align='left' width='11' height='8'}</a> {/if} </td> <td rowspan="2" style="border:0;padding-top:2px;vertical-align:middle"><div style="display:block" id="startdate"> @@ -240,13 +240,13 @@ {/if} </div></td> <td style="border:0;padding-top:2px;vertical-align:middle"> - <span id="starttimehourplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.start_Hour.selectedIndex=(document.f.start_Hour.selectedIndex+1);">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> + <span id="starttimehourplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.start_Hour.selectedIndex=(document.f.start_Hour.selectedIndex+1);return false;">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> </td> <td rowspan="2" style="border:0;vertical-align:middle" class="html_select_time"> <span id="starttime" style="display: {if $calitem.allday} none {else} inline {/if}">{html_select_time prefix="start_" display_seconds=false time=$calitem.start minute_interval=$prefs.calendar_timespan hour_minmax=$hour_minmax}</span> </td> <td style="border:0;padding-top:2px;vertical-align:middle"> - <span id="starttimeminplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.start_Minute.selectedIndex=(document.f.start_Minute.selectedIndex+1);">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> + <span id="starttimeminplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.start_Minute.selectedIndex=(document.f.start_Minute.selectedIndex+1);return false;">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> </td> <td style="border:0;padding-top:2px;vertical-align:middle;" rowspan="2"> <label for="alldayid"> @@ -266,21 +266,21 @@ toggleSpan('duration'); toggleSpan('duratione'); toggleSpan('durminplus'); - toggleSpan('durminminus');" + toggleSpan('durminminus');return false;" value="true" {if $calitem.allday} checked="checked" {/if} /> {tr}All day{/tr}</label> </td> </tr> <tr> <td style="border:0;vertical-align:middle"> {if $prefs.feature_jscalendar neq 'y' or $prefs.javascript_enabled neq 'y'} - <a href="#" onclick="document.f.Time_Hour.selectedIndex=(document.f.Time_Hour.selectedIndex-1);">{icon _id='minus_small' align='left' width='11' height='8'}</a> + <a href="#" onclick="document.f.Time_Hour.selectedIndex=(document.f.Time_Hour.selectedIndex-1);return false;">{icon _id='minus_small' align='left' width='11' height='8'}</a> {/if} </td> <td style="border:0;vertical-align:middle"> - <span id="starttimehourminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.start_Hour.selectedIndex=(document.f.start_Hour.selectedIndex-1);">{icon _id='minus_small' align='left' width='11' height='8'}</a> + <span id="starttimehourminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.start_Hour.selectedIndex=(document.f.start_Hour.selectedIndex-1);return false;">{icon _id='minus_small' align='left' width='11' height='8'}</a> </td> <td style="border:0;vertical-align:middle"> - <span id="starttimeminminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.start_Minute.selectedIndex=(document.f.start_Minute.selectedIndex-1);">{icon _id='minus_small' align='left' width='11' height='8'}</a> + <span id="starttimeminminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.start_Minute.selectedIndex=(document.f.start_Minute.selectedIndex-1);return false;">{icon _id='minus_small' align='left' width='11' height='8'}</a> </td> </tr> </table> @@ -302,7 +302,7 @@ <tr> <td style="border:0;padding-top:2px;vertical-align:middle"> {if $prefs.feature_jscalendar neq 'y' or $prefs.javascript_enabled neq 'y'} - <span id="endtimehourplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.Time_Hour.selectedIndex=(document.f.Time_Hour.selectedIndex+1);">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> + <span id="endtimehourplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.Time_Hour.selectedIndex=(document.f.Time_Hour.selectedIndex+1);return false;">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> {/if} </td> <td rowspan="2" style="border:0;vertical-align:middle"><div style="display:block" id="enddate"> @@ -313,29 +313,29 @@ {/if} </div></td> <td style="border:0;padding-top:2px;vertical-align:middle"> - <span id="endtimehourplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.end_Hour.selectedIndex=(document.f.end_Hour.selectedIndex+1);">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> + <span id="endtimehourplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.end_Hour.selectedIndex=(document.f.end_Hour.selectedIndex+1);return false;">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> </td> <td rowspan="2" style="border:0;vertical-align:middle" class="html_select_time"> <span id="endtime" style="display: {if $calitem.allday} none {else} inline {/if}">{html_select_time prefix="end_" display_seconds=false time=$calitem.end minute_interval=$prefs.calendar_timespan hour_minmax=$hour_minmax}</span> </td> <td style="border:0;padding-top:2px;vertical-align:middle"> - <span id="endtimeminplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.end_Minute.selectedIndex=(document.f.end_Minute.selectedIndex+1);">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> + <span id="endtimeminplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.end_Minute.selectedIndex=(document.f.end_Minute.selectedIndex+1);return false;">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> </td> <td rowspan="2" style="border:0;padding-top:2px;vertical-align:middle"> - <span id="duration" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.getElementById('end_or_duration').value='duration';flip('end_duration');flip('end_date');return false;">{tr}Duration{/tr}</a></span> + <span id="duration" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.getElementById('end_or_duration').value='duration';flip('end_duration');flip('end_date');return false;return false;">{tr}Duration{/tr}</a></span> </td> </tr> <tr> <td style="border:0;vertical-align:middle"> {if $prefs.feature_jscalendar neq 'y' or $prefs.javascript_enabled neq 'y'} - <a href="#" onclick="document.f.Time_Hour.selectedIndex=(document.f.Time_Hour.selectedIndex-1);">{icon _id='minus_small' align='left' width='11' height='8'}</a> + <a href="#" onclick="document.f.Time_Hour.selectedIndex=(document.f.Time_Hour.selectedIndex-1);return false;">{icon _id='minus_small' align='left' width='11' height='8'}</a> {/if} </td> <td style="border:0;vertical-align:middle"> - <span id="endtimehourminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.end_Hour.selectedIndex=(document.f.end_Hour.selectedIndex-1);">{icon _id='minus_small' align='left' width='11' height='8'}</a></span> + <span id="endtimehourminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.end_Hour.selectedIndex=(document.f.end_Hour.selectedIndex-1);return false;">{icon _id='minus_small' align='left' width='11' height='8'}</a></span> </td> <td style="border:0;vertical-align:middle"> - <span id="endtimeminminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.end_Minute.selectedIndex=(document.f.end_Minute.selectedIndex-1);">{icon _id='minus_small' align='left' width='11' height='8'}</a></span> + <span id="endtimeminminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.end_Minute.selectedIndex=(document.f.end_Minute.selectedIndex-1);return false;">{icon _id='minus_small' align='left' width='11' height='8'}</a></span> </td> </tr> </table> @@ -345,13 +345,13 @@ <table cellpadding="0" cellspacing="0" border="0"> <tr> <td style="border:0;padding-top:2px;vertical-align:middle"> - <span id="durhourplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.duration_Hour.selectedIndex=(document.f.duration_Hour.selectedIndex+1);">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> + <span id="durhourplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.duration_Hour.selectedIndex=(document.f.duration_Hour.selectedIndex+1);return false;">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> </td> <td style="border:0;vertical-align:middle" rowspan="2" class="html_select_time"> <span id="duratione" style="display: {if $calitem.allday} none {else} inline {/if}">{html_select_time prefix="duration_" display_seconds=false time=$calitem.duration|default:'01:00' minute_interval=$prefs.calendar_timespan}</span> </td> <td style="border:0;padding-top:2px;vertical-align:middle"> - <span id="durminplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.duration_Minute.selectedIndex=(document.f.duration_Minute.selectedIndex+1);">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> + <span id="durminplus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.duration_Minute.selectedIndex=(document.f.duration_Minute.selectedIndex+1);return false;">{icon _id='plus_small' align='left' width='11' height='8'}</a></span> </td> <td rowspan="2" style="border:0;padding-top:2px;vertical-align:middle"> <a href="#" onclick="document.getElementById('end_or_duration').value='end';flip('end_date');flip('end_duration');return false;">{tr}Date and time of end{/tr}</a> @@ -359,10 +359,10 @@ </tr> <tr> <td style="border:0;vertical-align:middle"> - <span id="durhourminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.duration_Hour.selectedIndex=(document.f.duration_Hour.selectedIndex-1);">{icon _id='minus_small' align='left' width='11' height='8'}</a></span> + <span id="durhourminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.duration_Hour.selectedIndex=(document.f.duration_Hour.selectedIndex-1);return false;">{icon _id='minus_small' align='left' width='11' height='8'}</a></span> </td> <td style="border:0;vertical-align:middle"> - <span id="durminminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.duration_Minute.selectedIndex=(document.f.duration_Minute.selectedIndex-1);">{icon _id='minus_small' align='left' width='11' height='8'}</a></span> + <span id="durminminus" style="display: {if $calitem.allday} none {else} inline {/if}"><a href="#" onclick="document.f.duration_Minute.selectedIndex=(document.f.duration_Minute.selectedIndex-1);return false;">{icon _id='minus_small' align='left' width='11' height='8'}</a></span> </td> </tr> </table> @@ -540,7 +540,7 @@ <tr style="display:{if $calendar.customparticipants eq 'y'}tablerow{else}none{/if};" id="calpart"> <td>{tr}Participants{/tr} {if $edit} -<a href="#" onclick="flip('calparthelp');">{icon _id='help'}</a> +<a href="#" onclick="flip('calparthelp');return false;">{icon _id='help'}</a> {/if} </td> <td> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |