Changeset 3204

Show
Ignore:
Timestamp:
03/03/11 16:32:56
Author:
johnsa
Message:

admin and personal web clients:
- restore ability to change recurrence rules, but show a warning and require confirmation by the user
- correct a javascript bug in the recurrence setting of month rules
- fix up recurrence information display, restoring white space where needed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.7/deployment/webadmin/webapp/resources/default/default/default.xsl

    r3199 r3204  
    4646  <xsl:include href="../../../bedework-common/default/default/bedeworkAccessStrings.xsl"/> 
    4747  <xsl:include href="./strings.xsl"/> 
     48  <xsl:include href="./localeSettings.xsl" /> 
    4849 
    4950  <!-- DEFINE GLOBAL CONSTANTS --> 
     
    250251        </xsl:if> 
    251252        <xsl:if test="/bedework/page='modEvent' or /bedework/page='modEventPending'"> 
     253          <!-- import the internationalized strings for the javascript widgets --> 
     254          <xsl:call-template name="bedeworkEventJsStrings"/> 
     255           
    252256          <script type="text/javascript" src="{$resourcesRoot}/resources/bedework.js">&#160;</script> 
    253257          <script type="text/javascript" src="/bedework-common/javascript/bedework/bwClock.js">&#160;</script> 
     
    259263            </xsl:when> 
    260264            <xsl:otherwise> 
    261               <!-- link rel="stylesheet" href="/bedework-common/javascript/jquery/bedeworkJqueryThemes.css"/--> 
     265              <!-- include the localized jQuery datepicker defaults --> 
     266                          <xsl:call-template name="jqueryDatepickerDefaults"/> 
     267                         
     268                          <!-- now setup date and time pickers -->   
    262269              <script type="text/javascript"> 
    263270                <xsl:comment> 
    264                 $.datepicker.setDefaults({ 
    265                   constrainInput: true, 
    266                   dateFormat: "yy-mm-dd", 
    267                   showOn: "both", 
    268                   buttonImage: "<xsl:value-of select='$resourcesRoot'/>/resources/calIcon.gif", 
    269                   buttonImageOnly: true, 
    270                   gotoCurrent: true, 
    271                   duration: "" 
    272                 }); 
    273  
    274271                function bwSetupDatePickers() { 
    275272                  // startdate 
     
    18431840                  </h4> 
    18441841                  <!-- show or hide rrules fields when editing: --> 
    1845                   <!-- DEPRECATED: No longer allow the changing of recurrence information once created. 
    18461842                  <xsl:if test="form/recurrence"> 
    18471843                    <span id="rrulesSwitch"> 
     
    18521848                      <xsl:copy-of select="$bwStr-AEEF-ChangeRecurrenceRules"/> 
    18531849                    </span> 
    1854                   </xsl:if> --> 
     1850                  </xsl:if> 
    18551851                  <span id="rrulesUiSwitch"> 
    18561852                    <xsl:if test="form/recurrence"> 
     
    18661862                         more easily internationalized. --> 
    18671863                    <div id="recurrenceInfo"> 
    1868                       <xsl:copy-of select="$bwStr-AEEF-Every"/> 
     1864                      <xsl:copy-of select="$bwStr-AEEF-Every"/><xsl:text> </xsl:text> 
    18691865                      <xsl:choose> 
    18701866                        <xsl:when test="form/recurrence/interval &gt; 1"> 
     
    18741870                      <xsl:text> </xsl:text> 
    18751871                      <xsl:choose> 
    1876                         <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/></xsl:when> 
    1877                         <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/></xsl:when> 
    1878                         <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/></xsl:when> 
    1879                         <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/></xsl:when> 
    1880                         <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/></xsl:when> 
     1872                        <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/><xsl:text> </xsl:text></xsl:when> 
     1873                        <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/><xsl:text> </xsl:text></xsl:when> 
     1874                        <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/><xsl:text> </xsl:text></xsl:when> 
     1875                        <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/><xsl:text> </xsl:text></xsl:when> 
     1876                        <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/><xsl:text> </xsl:text></xsl:when> 
    18811877                      </xsl:choose> 
    18821878                      <xsl:text> </xsl:text> 
     
    18861882                          <xsl:if test="position() != 1"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-And"/><xsl:text> </xsl:text></xsl:if> 
    18871883                          <xsl:copy-of select="$bwStr-AEEF-On"/> 
     1884                          <xsl:text> </xsl:text> 
    18881885                          <xsl:choose> 
    18891886                            <xsl:when test="@val='1'"> 
    1890                               <xsl:copy-of select="$bwStr-AEEF-TheFirst"/> 
     1887                              <xsl:copy-of select="$bwStr-AEEF-TheFirst"/><xsl:text> </xsl:text> 
    18911888                            </xsl:when> 
    18921889                            <xsl:when test="@val='2'"> 
    1893                               <xsl:copy-of select="$bwStr-AEEF-TheSecond"/> 
     1890                              <xsl:copy-of select="$bwStr-AEEF-TheSecond"/><xsl:text> </xsl:text> 
    18941891                            </xsl:when> 
    18951892                            <xsl:when test="@val='3'"> 
    1896                               <xsl:copy-of select="$bwStr-AEEF-TheThird"/> 
     1893                              <xsl:copy-of select="$bwStr-AEEF-TheThird"/><xsl:text> </xsl:text> 
    18971894                            </xsl:when> 
    18981895                            <xsl:when test="@val='4'"> 
    1899                               <xsl:copy-of select="$bwStr-AEEF-TheFourth"/> 
     1896                              <xsl:copy-of select="$bwStr-AEEF-TheFourth"/><xsl:text> </xsl:text> 
    19001897                            </xsl:when> 
    19011898                            <xsl:when test="@val='5'"> 
    1902                               <xsl:copy-of select="$bwStr-AEEF-TheFifth"/> 
     1899                              <xsl:copy-of select="$bwStr-AEEF-TheFifth"/><xsl:text> </xsl:text> 
    19031900                            </xsl:when> 
    19041901                            <xsl:when test="@val='-1'"> 
    1905                               <xsl:copy-of select="$bwStr-AEEF-TheLast"/> 
     1902                              <xsl:copy-of select="$bwStr-AEEF-TheLast"/><xsl:text> </xsl:text> 
    19061903                            </xsl:when> 
    19071904                            <!-- don't output "every" --> 
     
    19351932 
    19361933                      <xsl:if test="form/recurrence/bymonthday"> 
     1934                        <xsl:text> </xsl:text> 
    19371935                        <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     1936                        <xsl:text> </xsl:text> 
    19381937                        <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 
     1938                        <xsl:text> </xsl:text> 
    19391939                        <xsl:copy-of select="$bwStr-AEEF-DayOfTheMonth"/> 
     1940                        <xsl:text> </xsl:text> 
    19401941                      </xsl:if> 
    19411942 
    19421943                      <xsl:if test="form/recurrence/byyearday"> 
     1944                        <xsl:text> </xsl:text> 
    19431945                        <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     1946                        <xsl:text> </xsl:text> 
    19441947                        <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 
     1948                        <xsl:text> </xsl:text> 
    19451949                        <xsl:copy-of select="$bwStr-AEEF-DayOfTheYear"/> 
     1950                        <xsl:text> </xsl:text> 
    19461951                      </xsl:if> 
    19471952 
    19481953                      <xsl:if test="form/recurrence/byweekno"> 
     1954                        <xsl:text> </xsl:text> 
    19491955                        <xsl:copy-of select="$bwStr-AEEF-InThe"/> 
     1956                        <xsl:text> </xsl:text> 
    19501957                        <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 
     1958                        <xsl:text> </xsl:text> 
    19511959                        <xsl:copy-of select="$bwStr-AEEF-WeekOfTheYear"/> 
     1960                        <xsl:text> </xsl:text> 
    19521961                      </xsl:if> 
    19531962 
     
    19561965                        <xsl:when test="form/recurrence/count = '-1'"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-Forever"/></xsl:when> 
    19571966                        <xsl:when test="form/recurrence/until"> 
    1958                           <xsl:copy-of select="$bwStr-AEEF-Until"/><xsl:text> </xsl:text><xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
     1967                          <xsl:text> </xsl:text> 
     1968                          <xsl:copy-of select="$bwStr-AEEF-Until"/> 
     1969                          <xsl:text> </xsl:text> 
     1970                          <xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
    19591971                        </xsl:when> 
    19601972                        <xsl:otherwise> 
     1973                          <xsl:text> </xsl:text> 
    19611974                          <xsl:value-of select="form/recurrence/count"/> 
     1975                          <xsl:text> </xsl:text> 
    19621976                          <xsl:copy-of select="$bwStr-AEEF-Times"/> 
    19631977                        </xsl:otherwise> 
  • releases/bedework-3.7/deployment/webadmin/webapp/resources/es_ES/default/default.xsl

    r3188 r3204  
    4646  <xsl:include href="../../../bedework-common/es_ES/default/bedeworkAccessStrings.xsl"/> 
    4747  <xsl:include href="./strings.xsl"/> 
     48  <xsl:include href="./localeSettings.xsl" /> 
    4849 
    4950  <!-- DEFINE GLOBAL CONSTANTS --> 
     
    250251        </xsl:if> 
    251252        <xsl:if test="/bedework/page='modEvent' or /bedework/page='modEventPending'"> 
     253          <!-- import the internationalized strings for the javascript widgets --> 
     254          <xsl:call-template name="bedeworkEventJsStrings"/> 
     255           
    252256          <script type="text/javascript" src="{$resourcesRoot}/resources/bedework.js">&#160;</script> 
    253257          <script type="text/javascript" src="/bedework-common/javascript/bedework/bwClock.js">&#160;</script> 
     
    259263            </xsl:when> 
    260264            <xsl:otherwise> 
    261               <!-- link rel="stylesheet" href="/bedework-common/javascript/jquery/bedeworkJqueryThemes.css"/--> 
     265              <!-- include the localized jQuery datepicker defaults --> 
     266                          <xsl:call-template name="jqueryDatepickerDefaults"/> 
     267                         
     268                          <!-- now setup date and time pickers -->   
    262269              <script type="text/javascript"> 
    263270                <xsl:comment> 
    264                 $.datepicker.setDefaults({ 
    265                   constrainInput: true, 
    266                   dateFormat: "yy-mm-dd", 
    267                   showOn: "both", 
    268                   buttonImage: "<xsl:value-of select='$resourcesRoot'/>/resources/calIcon.gif", 
    269                   buttonImageOnly: true, 
    270                   gotoCurrent: true, 
    271                   duration: "" 
    272                 }); 
    273  
    274271                function bwSetupDatePickers() { 
    275272                  // startdate 
     
    18441841                  </h4> 
    18451842                  <!-- show or hide rrules fields when editing: --> 
    1846                   <!-- DEPRECATED: No longer allow the changing of recurrence information once created. 
    18471843                  <xsl:if test="form/recurrence"> 
    18481844                    <span id="rrulesSwitch"> 
     
    18531849                      <xsl:copy-of select="$bwStr-AEEF-ChangeRecurrenceRules"/> 
    18541850                    </span> 
    1855                   </xsl:if> --> 
     1851                  </xsl:if> 
    18561852                  <span id="rrulesUiSwitch"> 
    18571853                    <xsl:if test="form/recurrence"> 
     
    18671863                         more easily internationalized. --> 
    18681864                    <div id="recurrenceInfo"> 
    1869                       <xsl:copy-of select="$bwStr-AEEF-Every"/> 
     1865                      <xsl:copy-of select="$bwStr-AEEF-Every"/><xsl:text> </xsl:text> 
    18701866                      <xsl:choose> 
    18711867                        <xsl:when test="form/recurrence/interval &gt; 1"> 
     
    18751871                      <xsl:text> </xsl:text> 
    18761872                      <xsl:choose> 
    1877                         <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/></xsl:when> 
    1878                         <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/></xsl:when> 
    1879                         <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/></xsl:when> 
    1880                         <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/></xsl:when> 
    1881                         <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/></xsl:when> 
     1873                        <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/><xsl:text> </xsl:text></xsl:when> 
     1874                        <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/><xsl:text> </xsl:text></xsl:when> 
     1875                        <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/><xsl:text> </xsl:text></xsl:when> 
     1876                        <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/><xsl:text> </xsl:text></xsl:when> 
     1877                        <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/><xsl:text> </xsl:text></xsl:when> 
    18821878                      </xsl:choose> 
    18831879                      <xsl:text> </xsl:text> 
     
    18871883                          <xsl:if test="position() != 1"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-And"/><xsl:text> </xsl:text></xsl:if> 
    18881884                          <xsl:copy-of select="$bwStr-AEEF-On"/> 
     1885                          <xsl:text> </xsl:text> 
    18891886                          <xsl:choose> 
    18901887                            <xsl:when test="@val='1'"> 
    1891                               <xsl:copy-of select="$bwStr-AEEF-TheFirst"/> 
     1888                              <xsl:copy-of select="$bwStr-AEEF-TheFirst"/><xsl:text> </xsl:text> 
    18921889                            </xsl:when> 
    18931890                            <xsl:when test="@val='2'"> 
    1894                               <xsl:copy-of select="$bwStr-AEEF-TheSecond"/> 
     1891                              <xsl:copy-of select="$bwStr-AEEF-TheSecond"/><xsl:text> </xsl:text> 
    18951892                            </xsl:when> 
    18961893                            <xsl:when test="@val='3'"> 
    1897                               <xsl:copy-of select="$bwStr-AEEF-TheThird"/> 
     1894                              <xsl:copy-of select="$bwStr-AEEF-TheThird"/><xsl:text> </xsl:text> 
    18981895                            </xsl:when> 
    18991896                            <xsl:when test="@val='4'"> 
    1900                               <xsl:copy-of select="$bwStr-AEEF-TheFourth"/> 
     1897                              <xsl:copy-of select="$bwStr-AEEF-TheFourth"/><xsl:text> </xsl:text> 
    19011898                            </xsl:when> 
    19021899                            <xsl:when test="@val='5'"> 
    1903                               <xsl:copy-of select="$bwStr-AEEF-TheFifth"/> 
     1900                              <xsl:copy-of select="$bwStr-AEEF-TheFifth"/><xsl:text> </xsl:text> 
    19041901                            </xsl:when> 
    19051902                            <xsl:when test="@val='-1'"> 
    1906                               <xsl:copy-of select="$bwStr-AEEF-TheLast"/> 
     1903                              <xsl:copy-of select="$bwStr-AEEF-TheLast"/><xsl:text> </xsl:text> 
    19071904                            </xsl:when> 
    19081905                            <!-- don't output "every" --> 
     
    19361933 
    19371934                      <xsl:if test="form/recurrence/bymonthday"> 
     1935                        <xsl:text> </xsl:text> 
    19381936                        <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     1937                        <xsl:text> </xsl:text> 
    19391938                        <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 
     1939                        <xsl:text> </xsl:text> 
    19401940                        <xsl:copy-of select="$bwStr-AEEF-DayOfTheMonth"/> 
     1941                        <xsl:text> </xsl:text> 
    19411942                      </xsl:if> 
    19421943 
    19431944                      <xsl:if test="form/recurrence/byyearday"> 
     1945                        <xsl:text> </xsl:text> 
    19441946                        <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     1947                        <xsl:text> </xsl:text> 
    19451948                        <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 
     1949                        <xsl:text> </xsl:text> 
    19461950                        <xsl:copy-of select="$bwStr-AEEF-DayOfTheYear"/> 
     1951                        <xsl:text> </xsl:text> 
    19471952                      </xsl:if> 
    19481953 
    19491954                      <xsl:if test="form/recurrence/byweekno"> 
     1955                        <xsl:text> </xsl:text> 
    19501956                        <xsl:copy-of select="$bwStr-AEEF-InThe"/> 
     1957                        <xsl:text> </xsl:text> 
    19511958                        <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 
     1959                        <xsl:text> </xsl:text> 
    19521960                        <xsl:copy-of select="$bwStr-AEEF-WeekOfTheYear"/> 
     1961                        <xsl:text> </xsl:text> 
    19531962                      </xsl:if> 
    19541963 
    19551964                      <xsl:copy-of select="$bwStr-AEEF-Repeating"/> 
    19561965                      <xsl:choose> 
    1957                         <xsl:when test="form/recurrence/count = '-1'"><xsl:copy-of select="$bwStr-AEEF-Forever"/></xsl:when> 
     1966                        <xsl:when test="form/recurrence/count = '-1'"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-Forever"/></xsl:when> 
    19581967                        <xsl:when test="form/recurrence/until"> 
    1959                           <xsl:copy-of select="$bwStr-AEEF-Until"/><xsl:text> </xsl:text><xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
     1968                          <xsl:text> </xsl:text> 
     1969                          <xsl:copy-of select="$bwStr-AEEF-Until"/> 
     1970                          <xsl:text> </xsl:text> 
     1971                          <xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
    19601972                        </xsl:when> 
    19611973                        <xsl:otherwise> 
     1974                          <xsl:text> </xsl:text> 
    19621975                          <xsl:value-of select="form/recurrence/count"/> 
     1976                          <xsl:text> </xsl:text> 
    19631977                          <xsl:copy-of select="$bwStr-AEEF-Times"/> 
    19641978                        </xsl:otherwise> 
  • releases/bedework-3.7/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js

    r2995 r3204  
    496496function swapRrules(obj) { 
    497497  if (obj.checked) { 
    498     changeClass('rrulesTable','visible'); 
    499     changeClass('rrulesUiSwitch','visible'); 
    500     if (document.getElementById('recurrenceInfo')) { 
    501       changeClass('recurrenceInfo','invisible'); 
     498    // make sure the user knows the ramifications of their actions 
     499    if(confirm(bwRecurChangeWarning)) { 
     500      changeClass('rrulesTable','visible'); 
     501      changeClass('rrulesUiSwitch','visible'); 
     502      if (document.getElementById('recurrenceInfo')) { 
     503        changeClass('recurrenceInfo','invisible'); 
     504      } 
     505    } else { 
     506      // they decided against it. Uncheck the box. 
     507      obj.checked = false;  
    502508    } 
    503509  } else { 
  • releases/bedework-3.7/deployment/webuser/webapp/resources/demoskins/de_DE/localeSettings.xsl

    r3188 r3204  
    4949  </xsl:template> 
    5050     
    51   <!-- Declare the JavaScript scheduling strings. --> 
     51  <!-- Declare the JavaScript event strings. --> 
    5252  <!-- These are for display and can be translated. --> 
    53   <xsl:template name="bedeworkSchedulingStrings"> 
     53  <xsl:template name="bedeworkEventJsStrings"> 
    5454    <script type="text/javascript"> 
     55      // Scheduling strings 
    5556                        var bwAttendeeDispRoleChair = "chair"; 
    5657                        var bwAttendeeDispRoleRequired = "required participant"; 
     
    8788                        var bwErrorAttendees = "Error: attendees not returned"; 
    8889       
     90      // recurrence strings 
     91      var bwRecurChangeWarning = "WARNING: changing your recurrence rules\nwill destroy all existing recurrence overrides\nand exceptions when you save the event.\n\nContinue?"; 
    8992    </script> 
    9093  </xsl:template> 
  • releases/bedework-3.7/deployment/webuser/webapp/resources/demoskins/default/localeSettings.xsl

    r3188 r3204  
    5353  </xsl:template> 
    5454   
    55   <!-- Declare the JavaScript scheduling strings. --> 
     55  <!-- Declare the JavaScript event strings. --> 
    5656  <!-- These are for display and can be translated. --> 
    57   <xsl:template name="bedeworkSchedulingStrings"> 
     57  <xsl:template name="bedeworkEventJsStrings"> 
    5858    <script type="text/javascript"> 
     59      // Scheduling strings 
    5960                        var bwAttendeeDispRoleChair = "chair"; 
    6061                        var bwAttendeeDispRoleRequired = "required participant"; 
     
    9192                        var bwErrorAttendees = "Error: attendees not returned"; 
    9293       
     94      // recurrence strings 
     95      var bwRecurChangeWarning = "WARNING: changing your recurrence rules\nwill destroy all existing recurrence overrides\nand exceptions when you save the event.\n\nContinue?"; 
    9396    </script> 
    9497  </xsl:template> 
  • releases/bedework-3.7/deployment/webuser/webapp/resources/demoskins/es_ES/localeSettings.xsl

    r3188 r3204  
    4949  </xsl:template> 
    5050   
    51   <!-- Declare the JavaScript scheduling strings. --> 
     51  <!-- Declare the JavaScript event strings. --> 
    5252  <!-- These are for display and can be translated. --> 
    53   <xsl:template name="bedeworkSchedulingStrings"> 
     53  <xsl:template name="bedeworkEventJsStrings"> 
    5454    <script type="text/javascript"> 
     55      // Scheduling strings 
    5556                        var bwAttendeeDispRoleChair = "chair"; 
    5657                        var bwAttendeeDispRoleRequired = "required participant"; 
     
    8687                         
    8788                        var bwErrorAttendees = "Error: attendees not returned"; 
    88        
     89 
     90      // recurrence strings 
     91      var bwRecurChangeWarning = "WARNING: changing your recurrence rules\nwill destroy all existing recurrence overrides\nand exceptions when you save the event.\n\nContinue?"; 
    8992    </script> 
    9093  </xsl:template> 
  • releases/bedework-3.7/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl

    r3201 r3204  
    827827            <h4><xsl:copy-of select="$bwStr-AEEF-RecurrenceRules"/></h4> 
    828828            <!-- show or hide rrules fields when editing: --> 
    829             <!-- DEPRECATED: No longer allow the changing of recurrence information once created. 
    830829            <xsl:if test="form/recurrence"> 
    831830              <input type="checkbox" name="rrulesFlag" onclick="swapRrules(this)" value="on"/> 
     
    833832                <xsl:copy-of select="$bwStr-AEEF-ChangeRecurrenceRules"/> 
    834833              </span> 
    835             </xsl:if> --> 
     834            </xsl:if> 
    836835            <span id="rrulesUiSwitch"> 
    837836              <xsl:if test="form/recurrence"> 
     
    867866                    <xsl:if test="position() != 1"> <xsl:copy-of select="$bwStr-AEEF-And"/> </xsl:if> 
    868867                    <xsl:copy-of select="$bwStr-AEEF-On"/> 
     868                    <xsl:text> </xsl:text> 
    869869                    <xsl:choose> 
    870870                      <xsl:when test="@val='1'"> 
     
    922922                  <xsl:text> </xsl:text> 
    923923                  <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 
     924                  <xsl:text> </xsl:text> 
    924925                  <xsl:copy-of select="$bwStr-AEEF-DayOfTheMonth"/> 
    925926                  <xsl:text> </xsl:text> 
     
    931932                  <xsl:text> </xsl:text> 
    932933                  <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 
     934                  <xsl:text> </xsl:text> 
    933935                  <xsl:copy-of select="$bwStr-AEEF-DayOfTheYear"/> 
    934936                  <xsl:text> </xsl:text> 
     
    940942                  <xsl:text> </xsl:text> 
    941943                  <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 
     944                  <xsl:text> </xsl:text> 
    942945                  <xsl:copy-of select="$bwStr-AEEF-WeekOfTheYear"/> 
    943946                  <xsl:text> </xsl:text> 
  • releases/bedework-3.7/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/head.xsl

    r3192 r3204  
    208208                  /bedework/page='editEvent'"> 
    209209       
     210      <!-- import the internationalized strings for the javascript widgets --> 
     211      <xsl:call-template name="bedeworkEventJsStrings"/> 
     212       
    210213      <script type="text/javascript" src="/bedework-common/javascript/bedework/bwClock.js">&#160;</script> 
    211214      <link rel="stylesheet" href="/bedework-common/javascript/bedework/bwClock.css"/> 
     
    215218      <script type="text/javascript" src="/bedework-common/javascript/bedework/bedeworkXProperties.js">&#160;</script> 
    216219       
    217       <!-- import the strings for the scheduling grid widget --> 
    218       <xsl:call-template name="bedeworkSchedulingStrings"/> 
    219220      <script type="text/javascript" src="{$resourcesRoot}/javascript/bedeworkScheduling.js">&#160;</script> 
    220221      <link rel="stylesheet" href="{$resourcesRoot}/css/bwScheduling.css"/> 
  • releases/bedework-3.7/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkEventForm.js

    r2928 r3204  
    394394function swapRrules(obj) { 
    395395  if (obj.checked) { 
    396     changeClass('rrulesTable','visible'); 
    397     changeClass('rrulesUiSwitch','visible'); 
    398     if (document.getElementById('recurrenceInfo')) { 
    399       changeClass('recurrenceInfo','invisible'); 
     396    // make sure the user knows the ramifications of their actions 
     397    if(confirm(bwRecurChangeWarning)) { 
     398      changeClass('rrulesTable','visible'); 
     399      changeClass('rrulesUiSwitch','visible'); 
     400      if (document.getElementById('recurrenceInfo')) { 
     401        changeClass('recurrenceInfo','invisible'); 
     402      } 
     403    } else { 
     404      // they decided against it. Uncheck the box. 
     405      obj.checked = false;  
    400406    } 
    401407  } else { 
     
    510516          var monthFields = document.getElementById(monthByDayId); 
    511517          var dayPosSelect = monthFields.getElementsByTagName('select'); 
    512           var dayPos = dayPosSelect[0][dayPosSelect[0].selectedIndex].value; 
     518          var dayPos = dayPosSelect[0].value; 
    513519          if (dayPos) { 
    514520            byday = collectRecurChkBoxVals(byday,monthFields.getElementsByTagName('input'),dayPos); 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r3198 r3204  
    4646  <xsl:include href="../../../bedework-common/default/default/bedeworkAccessStrings.xsl"/> 
    4747  <xsl:include href="./strings.xsl"/> 
     48  <xsl:include href="./localeSettings.xsl" /> 
    4849 
    4950  <!-- DEFINE GLOBAL CONSTANTS --> 
     
    250251        </xsl:if> 
    251252        <xsl:if test="/bedework/page='modEvent' or /bedework/page='modEventPending'"> 
     253          <!-- import the internationalized strings for the javascript widgets --> 
     254          <xsl:call-template name="bedeworkEventJsStrings"/> 
     255           
    252256          <script type="text/javascript" src="{$resourcesRoot}/resources/bedework.js">&#160;</script> 
    253257          <script type="text/javascript" src="/bedework-common/javascript/bedework/bwClock.js">&#160;</script> 
     
    259263            </xsl:when> 
    260264            <xsl:otherwise> 
    261               <!-- link rel="stylesheet" href="/bedework-common/javascript/jquery/bedeworkJqueryThemes.css"/--> 
     265              <!-- include the localized jQuery datepicker defaults --> 
     266                          <xsl:call-template name="jqueryDatepickerDefaults"/> 
     267                         
     268                          <!-- now setup date and time pickers -->   
    262269              <script type="text/javascript"> 
    263270                <xsl:comment> 
    264                 $.datepicker.setDefaults({ 
    265                   constrainInput: true, 
    266                   dateFormat: "yy-mm-dd", 
    267                   showOn: "both", 
    268                   buttonImage: "<xsl:value-of select='$resourcesRoot'/>/resources/calIcon.gif", 
    269                   buttonImageOnly: true, 
    270                   gotoCurrent: true, 
    271                   duration: "" 
    272                 }); 
    273  
    274271                function bwSetupDatePickers() { 
    275272                  // startdate 
     
    18431840                  </h4> 
    18441841                  <!-- show or hide rrules fields when editing: --> 
    1845                   <!-- DEPRECATED: No longer allow the changing of recurrence information once created. 
    18461842                  <xsl:if test="form/recurrence"> 
    18471843                    <span id="rrulesSwitch"> 
     
    18521848                      <xsl:copy-of select="$bwStr-AEEF-ChangeRecurrenceRules"/> 
    18531849                    </span> 
    1854                   </xsl:if> --> 
     1850                  </xsl:if> 
    18551851                  <span id="rrulesUiSwitch"> 
    18561852                    <xsl:if test="form/recurrence"> 
     
    18661862                         more easily internationalized. --> 
    18671863                    <div id="recurrenceInfo"> 
    1868                       <xsl:copy-of select="$bwStr-AEEF-Every"/> 
     1864                      <xsl:copy-of select="$bwStr-AEEF-Every"/><xsl:text> </xsl:text> 
    18691865                      <xsl:choose> 
    18701866                        <xsl:when test="form/recurrence/interval &gt; 1"> 
     
    18741870                      <xsl:text> </xsl:text> 
    18751871                      <xsl:choose> 
    1876                         <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/></xsl:when> 
    1877                         <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/></xsl:when> 
    1878                         <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/></xsl:when> 
    1879                         <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/></xsl:when> 
    1880                         <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/></xsl:when> 
     1872                        <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/><xsl:text> </xsl:text></xsl:when> 
     1873                        <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/><xsl:text> </xsl:text></xsl:when> 
     1874                        <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/><xsl:text> </xsl:text></xsl:when> 
     1875                        <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/><xsl:text> </xsl:text></xsl:when> 
     1876                        <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/><xsl:text> </xsl:text></xsl:when> 
    18811877                      </xsl:choose> 
    18821878                      <xsl:text> </xsl:text> 
     
    18861882                          <xsl:if test="position() != 1"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-And"/><xsl:text> </xsl:text></xsl:if> 
    18871883                          <xsl:copy-of select="$bwStr-AEEF-On"/> 
     1884                          <xsl:text> </xsl:text> 
    18881885                          <xsl:choose> 
    18891886                            <xsl:when test="@val='1'"> 
    1890                               <xsl:copy-of select="$bwStr-AEEF-TheFirst"/> 
     1887                              <xsl:copy-of select="$bwStr-AEEF-TheFirst"/><xsl:text> </xsl:text> 
    18911888                            </xsl:when> 
    18921889                            <xsl:when test="@val='2'"> 
    1893                               <xsl:copy-of select="$bwStr-AEEF-TheSecond"/> 
     1890                              <xsl:copy-of select="$bwStr-AEEF-TheSecond"/><xsl:text> </xsl:text> 
    18941891                            </xsl:when> 
    18951892                            <xsl:when test="@val='3'"> 
    1896                               <xsl:copy-of select="$bwStr-AEEF-TheThird"/> 
     1893                              <xsl:copy-of select="$bwStr-AEEF-TheThird"/><xsl:text> </xsl:text> 
    18971894                            </xsl:when> 
    18981895                            <xsl:when test="@val='4'"> 
    1899                               <xsl:copy-of select="$bwStr-AEEF-TheFourth"/> 
     1896                              <xsl:copy-of select="$bwStr-AEEF-TheFourth"/><xsl:text> </xsl:text> 
    19001897                            </xsl:when> 
    19011898                            <xsl:when test="@val='5'"> 
    1902                               <xsl:copy-of select="$bwStr-AEEF-TheFifth"/> 
     1899                              <xsl:copy-of select="$bwStr-AEEF-TheFifth"/><xsl:text> </xsl:text> 
    19031900                            </xsl:when> 
    19041901                            <xsl:when test="@val='-1'"> 
    1905                               <xsl:copy-of select="$bwStr-AEEF-TheLast"/> 
     1902                              <xsl:copy-of select="$bwStr-AEEF-TheLast"/><xsl:text> </xsl:text> 
    19061903                            </xsl:when> 
    19071904                            <!-- don't output "every" --> 
     
    19351932 
    19361933                      <xsl:if test="form/recurrence/bymonthday"> 
     1934                        <xsl:text> </xsl:text> 
    19371935                        <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     1936                        <xsl:text> </xsl:text> 
    19381937                        <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 
     1938                        <xsl:text> </xsl:text> 
    19391939                        <xsl:copy-of select="$bwStr-AEEF-DayOfTheMonth"/> 
     1940                        <xsl:text> </xsl:text> 
    19401941                      </xsl:if> 
    19411942 
    19421943                      <xsl:if test="form/recurrence/byyearday"> 
     1944                        <xsl:text> </xsl:text> 
    19431945                        <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     1946                        <xsl:text> </xsl:text> 
    19441947                        <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 
     1948                        <xsl:text> </xsl:text> 
    19451949                        <xsl:copy-of select="$bwStr-AEEF-DayOfTheYear"/> 
     1950                        <xsl:text> </xsl:text> 
    19461951                      </xsl:if> 
    19471952 
    19481953                      <xsl:if test="form/recurrence/byweekno"> 
     1954                        <xsl:text> </xsl:text> 
    19491955                        <xsl:copy-of select="$bwStr-AEEF-InThe"/> 
     1956                        <xsl:text> </xsl:text> 
    19501957                        <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 
     1958                        <xsl:text> </xsl:text> 
    19511959                        <xsl:copy-of select="$bwStr-AEEF-WeekOfTheYear"/> 
     1960                        <xsl:text> </xsl:text> 
    19521961                      </xsl:if> 
    19531962 
     
    19561965                        <xsl:when test="form/recurrence/count = '-1'"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-Forever"/></xsl:when> 
    19571966                        <xsl:when test="form/recurrence/until"> 
    1958                           <xsl:copy-of select="$bwStr-AEEF-Until"/><xsl:text> </xsl:text><xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
     1967                          <xsl:text> </xsl:text> 
     1968                          <xsl:copy-of select="$bwStr-AEEF-Until"/> 
     1969                          <xsl:text> </xsl:text> 
     1970                          <xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
    19591971                        </xsl:when> 
    19601972                        <xsl:otherwise> 
     1973                          <xsl:text> </xsl:text> 
    19611974                          <xsl:value-of select="form/recurrence/count"/> 
     1975                          <xsl:text> </xsl:text> 
    19621976                          <xsl:copy-of select="$bwStr-AEEF-Times"/> 
    19631977                        </xsl:otherwise> 
  • trunk/deployment/webadmin/webapp/resources/es_ES/default/default.xsl

    r3188 r3204  
    4646  <xsl:include href="../../../bedework-common/es_ES/default/bedeworkAccessStrings.xsl"/> 
    4747  <xsl:include href="./strings.xsl"/> 
     48  <xsl:include href="./localeSettings.xsl" /> 
    4849 
    4950  <!-- DEFINE GLOBAL CONSTANTS --> 
     
    250251        </xsl:if> 
    251252        <xsl:if test="/bedework/page='modEvent' or /bedework/page='modEventPending'"> 
     253          <!-- import the internationalized strings for the javascript widgets --> 
     254          <xsl:call-template name="bedeworkEventJsStrings"/> 
     255           
    252256          <script type="text/javascript" src="{$resourcesRoot}/resources/bedework.js">&#160;</script> 
    253257          <script type="text/javascript" src="/bedework-common/javascript/bedework/bwClock.js">&#160;</script> 
     
    259263            </xsl:when> 
    260264            <xsl:otherwise> 
    261               <!-- link rel="stylesheet" href="/bedework-common/javascript/jquery/bedeworkJqueryThemes.css"/--> 
     265              <!-- include the localized jQuery datepicker defaults --> 
     266                          <xsl:call-template name="jqueryDatepickerDefaults"/> 
     267                         
     268                          <!-- now setup date and time pickers -->   
    262269              <script type="text/javascript"> 
    263270                <xsl:comment> 
    264                 $.datepicker.setDefaults({ 
    265                   constrainInput: true, 
    266                   dateFormat: "yy-mm-dd", 
    267                   showOn: "both", 
    268                   buttonImage: "<xsl:value-of select='$resourcesRoot'/>/resources/calIcon.gif", 
    269                   buttonImageOnly: true, 
    270                   gotoCurrent: true, 
    271                   duration: "" 
    272                 }); 
    273  
    274271                function bwSetupDatePickers() { 
    275272                  // startdate 
     
    18441841                  </h4> 
    18451842                  <!-- show or hide rrules fields when editing: --> 
    1846                   <!-- DEPRECATED: No longer allow the changing of recurrence information once created. 
    18471843                  <xsl:if test="form/recurrence"> 
    18481844                    <span id="rrulesSwitch"> 
     
    18531849                      <xsl:copy-of select="$bwStr-AEEF-ChangeRecurrenceRules"/> 
    18541850                    </span> 
    1855                   </xsl:if> --> 
     1851                  </xsl:if> 
    18561852                  <span id="rrulesUiSwitch"> 
    18571853                    <xsl:if test="form/recurrence"> 
     
    18671863                         more easily internationalized. --> 
    18681864                    <div id="recurrenceInfo"> 
    1869                       <xsl:copy-of select="$bwStr-AEEF-Every"/> 
     1865                      <xsl:copy-of select="$bwStr-AEEF-Every"/><xsl:text> </xsl:text> 
    18701866                      <xsl:choose> 
    18711867                        <xsl:when test="form/recurrence/interval &gt; 1"> 
     
    18751871                      <xsl:text> </xsl:text> 
    18761872                      <xsl:choose> 
    1877                         <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/></xsl:when> 
    1878                         <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/></xsl:when> 
    1879                         <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/></xsl:when> 
    1880                         <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/></xsl:when> 
    1881                         <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/></xsl:when> 
     1873                        <xsl:when test="form/recurrence/freq = 'HOURLY'"><xsl:copy-of select="$bwStr-AEEF-Hour"/><xsl:text> </xsl:text></xsl:when> 
     1874                        <xsl:when test="form/recurrence/freq = 'DAILY'"><xsl:copy-of select="$bwStr-AEEF-Day"/><xsl:text> </xsl:text></xsl:when> 
     1875                        <xsl:when test="form/recurrence/freq = 'WEEKLY'"><xsl:copy-of select="$bwStr-AEEF-Week"/><xsl:text> </xsl:text></xsl:when> 
     1876                        <xsl:when test="form/recurrence/freq = 'MONTHLY'"><xsl:copy-of select="$bwStr-AEEF-Month"/><xsl:text> </xsl:text></xsl:when> 
     1877                        <xsl:when test="form/recurrence/freq = 'YEARLY'"><xsl:copy-of select="$bwStr-AEEF-Year"/><xsl:text> </xsl:text></xsl:when> 
    18821878                      </xsl:choose> 
    18831879                      <xsl:text> </xsl:text> 
     
    18871883                          <xsl:if test="position() != 1"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-And"/><xsl:text> </xsl:text></xsl:if> 
    18881884                          <xsl:copy-of select="$bwStr-AEEF-On"/> 
     1885                          <xsl:text> </xsl:text> 
    18891886                          <xsl:choose> 
    18901887                            <xsl:when test="@val='1'"> 
    1891                               <xsl:copy-of select="$bwStr-AEEF-TheFirst"/> 
     1888                              <xsl:copy-of select="$bwStr-AEEF-TheFirst"/><xsl:text> </xsl:text> 
    18921889                            </xsl:when> 
    18931890                            <xsl:when test="@val='2'"> 
    1894                               <xsl:copy-of select="$bwStr-AEEF-TheSecond"/> 
     1891                              <xsl:copy-of select="$bwStr-AEEF-TheSecond"/><xsl:text> </xsl:text> 
    18951892                            </xsl:when> 
    18961893                            <xsl:when test="@val='3'"> 
    1897                               <xsl:copy-of select="$bwStr-AEEF-TheThird"/> 
     1894                              <xsl:copy-of select="$bwStr-AEEF-TheThird"/><xsl:text> </xsl:text> 
    18981895                            </xsl:when> 
    18991896                            <xsl:when test="@val='4'"> 
    1900                               <xsl:copy-of select="$bwStr-AEEF-TheFourth"/> 
     1897                              <xsl:copy-of select="$bwStr-AEEF-TheFourth"/><xsl:text> </xsl:text> 
    19011898                            </xsl:when> 
    19021899                            <xsl:when test="@val='5'"> 
    1903                               <xsl:copy-of select="$bwStr-AEEF-TheFifth"/> 
     1900                              <xsl:copy-of select="$bwStr-AEEF-TheFifth"/><xsl:text> </xsl:text> 
    19041901                            </xsl:when> 
    19051902                            <xsl:when test="@val='-1'"> 
    1906                               <xsl:copy-of select="$bwStr-AEEF-TheLast"/> 
     1903                              <xsl:copy-of select="$bwStr-AEEF-TheLast"/><xsl:text> </xsl:text> 
    19071904                            </xsl:when> 
    19081905                            <!-- don't output "every" --> 
     
    19361933 
    19371934                      <xsl:if test="form/recurrence/bymonthday"> 
     1935                        <xsl:text> </xsl:text> 
    19381936                        <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     1937                        <xsl:text> </xsl:text> 
    19391938                        <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 
     1939                        <xsl:text> </xsl:text> 
    19401940                        <xsl:copy-of select="$bwStr-AEEF-DayOfTheMonth"/> 
     1941                        <xsl:text> </xsl:text> 
    19411942                      </xsl:if> 
    19421943 
    19431944                      <xsl:if test="form/recurrence/byyearday"> 
     1945                        <xsl:text> </xsl:text> 
    19441946                        <xsl:copy-of select="$bwStr-AEEF-OnThe"/> 
     1947                        <xsl:text> </xsl:text> 
    19451948                        <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 
     1949                        <xsl:text> </xsl:text> 
    19461950                        <xsl:copy-of select="$bwStr-AEEF-DayOfTheYear"/> 
     1951                        <xsl:text> </xsl:text> 
    19471952                      </xsl:if> 
    19481953 
    19491954                      <xsl:if test="form/recurrence/byweekno"> 
     1955                        <xsl:text> </xsl:text> 
    19501956                        <xsl:copy-of select="$bwStr-AEEF-InThe"/> 
     1957                        <xsl:text> </xsl:text> 
    19511958                        <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 
     1959                        <xsl:text> </xsl:text> 
    19521960                        <xsl:copy-of select="$bwStr-AEEF-WeekOfTheYear"/> 
     1961                        <xsl:text> </xsl:text> 
    19531962                      </xsl:if> 
    19541963 
    19551964                      <xsl:copy-of select="$bwStr-AEEF-Repeating"/> 
    19561965                      <xsl:choose> 
    1957                         <xsl:when test="form/recurrence/count = '-1'"><xsl:copy-of select="$bwStr-AEEF-Forever"/></xsl:when> 
     1966                        <xsl:when test="form/recurrence/count = '-1'"><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-Forever"/></xsl:when> 
    19581967                        <xsl:when test="form/recurrence/until"> 
    1959                           <xsl:copy-of select="$bwStr-AEEF-Until"/><xsl:text> </xsl:text><xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
     1968                          <xsl:text> </xsl:text> 
     1969                          <xsl:copy-of select="$bwStr-AEEF-Until"/> 
     1970                          <xsl:text> </xsl:text> 
     1971                          <xsl:value-of select="substring(form/recurrence/until,1,4)"/>-<xsl:value-of select="substring(form/recurrence/until,5,2)"/>-<xsl:value-of select="substring(form/recurrence/until,7,2)"/> 
    19601972                        </xsl:when> 
    19611973                        <xsl:otherwise> 
     1974                          <xsl:text> </xsl:text> 
    19621975                          <xsl:value-of select="form/recurrence/count"/> 
     1976                          <xsl:text> </xsl:text> 
    19631977                          <xsl:copy-of select="$bwStr-AEEF-Times"/> 
    19641978                        </xsl:otherwise> 
  • trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js

    r2995 r3204  
    496496function swapRrules(obj) { 
    497497  if (obj.checked) { 
    498     changeClass('rrulesTable','visible'); 
    499     changeClass('rrulesUiSwitch','visible'); 
    500     if (document.getElementById('recurrenceInfo')) { 
    501       changeClass('recurrenceInfo','invisible'); 
     498    // make sure the user knows the ramifications of their actions 
     499    if(confirm(bwRecurChangeWarning)) { 
     500      changeClass('rrulesTable','visible'); 
     501      changeClass('rrulesUiSwitch','visible'); 
     502      if (document.getElementById('recurrenceInfo')) { 
     503        changeClass('recurrenceInfo','invisible'); 
     504      } 
     505    } else { 
     506      // they decided against it. Uncheck the box. 
     507      obj.checked = false;  
    502508    } 
    503509  } else { 
  • trunk/deployment/webuser/webapp/resources/demoskins/de_DE/localeSettings.xsl

    r3188 r3204  
    4949  </xsl:template> 
    5050     
    51   <!-- Declare the JavaScript scheduling strings. --> 
     51  <!-- Declare the JavaScript event strings. --> 
    5252  <!-- These are for display and can be translated. --> 
    53   <xsl:template name="bedeworkSchedulingStrings"> 
     53  <xsl:template name="bedeworkEventJsStrings"> 
    5454    <script type="text/javascript"> 
     55      // Scheduling strings 
    5556                        var bwAttendeeDispRoleChair = "chair"; 
    5657                        var bwAttendeeDispRoleRequired = "required participant"; 
     
    8788                        var bwErrorAttendees = "Error: attendees not returned"; 
    8889       
     90      // recurrence strings 
     91      var bwRecurChangeWarning = "WARNING: changing your recurrence rules\nwill destroy all existing recurrence overrides\nand exceptions when you save the event.\n\nContinue?"; 
    8992    </script> 
    9093  </xsl:template> 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/localeSettings.xsl

    r3188 r3204  
    5353  </xsl:template> 
    5454   
    55   <!-- Declare the JavaScript scheduling strings. --> 
     55  <!-- Declare the JavaScript event strings. --> 
    5656  <!-- These are for display and can be translated. --> 
    57   <xsl:template name="bedeworkSchedulingStrings"> 
     57  <xsl:template name="bedeworkEventJsStrings"> 
    5858    <script type="text/javascript"> 
     59      // Scheduling strings 
    5960                        var bwAttendeeDispRoleChair = "chair"; 
    6061                        var bwAttendeeDispRoleRequired = "required participant"; 
     
    9192                        var bwErrorAttendees = "Error: attendees not returned"; 
    9293       
     94      // recurrence strings 
     95      var bwRecurChangeWarning = "WARNING: changing your recurrence rules\nwill destroy all existing recurrence overrides\nand exceptions when you save the event.\n\nContinue?"; 
    9396    </script> 
    9497  </xsl:template> 
  • trunk/deployment/webuser/webapp/resources/demoskins/es_ES/localeSettings.xsl

    r3188 r3204  
    4949  </xsl:template> 
    5050   
    51   <!-- Declare the JavaScript scheduling strings. --> 
     51  <!-- Declare the JavaScript event strings. --> 
    5252  <!-- These are for display and can be translated. --> 
    53   <xsl:template name="bedeworkSchedulingStrings"> 
     53  <xsl:template name="bedeworkEventJsStrings"> 
    5454    <script type="text/javascript"> 
     55      // Scheduling strings 
    5556                        var bwAttendeeDispRoleChair = "chair"; 
    5657                        var bwAttendeeDispRoleRequired = "required participant"; 
     
    8687                         
    8788                        var bwErrorAttendees = "Error: attendees not returned"; 
    88        
     89 
     90      // recurrence strings 
     91      var bwRecurChangeWarning = "WARNING: changing your recurrence rules\nwill destroy all existing recurrence overrides\nand exceptions when you save the event.\n\nContinue?"; 
    8992    </script> 
    9093  </xsl:template> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl

    r3201 r3204  
    827827            <h4><xsl:copy-of select="$bwStr-AEEF-RecurrenceRules"/></h4> 
    828828            <!-- show or hide rrules fields when editing: --> 
    829             <!-- DEPRECATED: No longer allow the changing of recurrence information once created. 
    830829            <xsl:if test="form/recurrence"> 
    831830              <input type="checkbox" name="rrulesFlag" onclick="swapRrules(this)" value="on"/> 
     
    833832                <xsl:copy-of select="$bwStr-AEEF-ChangeRecurrenceRules"/> 
    834833              </span> 
    835             </xsl:if> --> 
     834            </xsl:if> 
    836835            <span id="rrulesUiSwitch"> 
    837836              <xsl:if test="form/recurrence"> 
     
    867866                    <xsl:if test="position() != 1"> <xsl:copy-of select="$bwStr-AEEF-And"/> </xsl:if> 
    868867                    <xsl:copy-of select="$bwStr-AEEF-On"/> 
     868                    <xsl:text> </xsl:text> 
    869869                    <xsl:choose> 
    870870                      <xsl:when test="@val='1'"> 
     
    922922                  <xsl:text> </xsl:text> 
    923923                  <xsl:apply-templates select="form/recurrence/bymonthday/val" mode="weekMonthYearNumbers"/> 
     924                  <xsl:text> </xsl:text> 
    924925                  <xsl:copy-of select="$bwStr-AEEF-DayOfTheMonth"/> 
    925926                  <xsl:text> </xsl:text> 
     
    931932                  <xsl:text> </xsl:text> 
    932933                  <xsl:apply-templates select="form/recurrence/byyearday/val" mode="weekMonthYearNumbers"/> 
     934                  <xsl:text> </xsl:text> 
    933935                  <xsl:copy-of select="$bwStr-AEEF-DayOfTheYear"/> 
    934936                  <xsl:text> </xsl:text> 
     
    940942                  <xsl:text> </xsl:text> 
    941943                  <xsl:apply-templates select="form/recurrence/byweekno/val" mode="weekMonthYearNumbers"/> 
     944                  <xsl:text> </xsl:text> 
    942945                  <xsl:copy-of select="$bwStr-AEEF-WeekOfTheYear"/> 
    943946                  <xsl:text> </xsl:text> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/head.xsl

    r3192 r3204  
    208208                  /bedework/page='editEvent'"> 
    209209       
     210      <!-- import the internationalized strings for the javascript widgets --> 
     211      <xsl:call-template name="bedeworkEventJsStrings"/> 
     212       
    210213      <script type="text/javascript" src="/bedework-common/javascript/bedework/bwClock.js">&#160;</script> 
    211214      <link rel="stylesheet" href="/bedework-common/javascript/bedework/bwClock.css"/> 
     
    215218      <script type="text/javascript" src="/bedework-common/javascript/bedework/bedeworkXProperties.js">&#160;</script> 
    216219       
    217       <!-- import the strings for the scheduling grid widget --> 
    218       <xsl:call-template name="bedeworkSchedulingStrings"/> 
    219220      <script type="text/javascript" src="{$resourcesRoot}/javascript/bedeworkScheduling.js">&#160;</script> 
    220221      <link rel="stylesheet" href="{$resourcesRoot}/css/bwScheduling.css"/> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkEventForm.js

    r2928 r3204  
    394394function swapRrules(obj) { 
    395395  if (obj.checked) { 
    396     changeClass('rrulesTable','visible'); 
    397     changeClass('rrulesUiSwitch','visible'); 
    398     if (document.getElementById('recurrenceInfo')) { 
    399       changeClass('recurrenceInfo','invisible'); 
     396    // make sure the user knows the ramifications of their actions 
     397    if(confirm(bwRecurChangeWarning)) { 
     398      changeClass('rrulesTable','visible'); 
     399      changeClass('rrulesUiSwitch','visible'); 
     400      if (document.getElementById('recurrenceInfo')) { 
     401        changeClass('recurrenceInfo','invisible'); 
     402      } 
     403    } else { 
     404      // they decided against it. Uncheck the box. 
     405      obj.checked = false;  
    400406    } 
    401407  } else { 
     
    510516          var monthFields = document.getElementById(monthByDayId); 
    511517          var dayPosSelect = monthFields.getElementsByTagName('select'); 
    512           var dayPos = dayPosSelect[0][dayPosSelect[0].selectedIndex].value; 
     518          var dayPos = dayPosSelect[0].value; 
    513519          if (dayPos) { 
    514520            byday = collectRecurChkBoxVals(byday,monthFields.getElementsByTagName('input'),dayPos);