Changeset 2216

Show
Ignore:
Timestamp:
06/01/09 17:21:13
Author:
johnsa
Message:

user client: first steps to improved menuing for event actions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css

    r2215 r2216  
    780780  vertical-align: middle; 
    781781} 
     782#bedework #eventActions .bwMenuButton { 
     783  position: relative; 
     784  float: right; 
     785  margin: 0 1em 0 0; 
     786} 
    782787#bedework #eventActions .bwMenuWidget { 
    783788  position: absolute; 
    784789  background-color: #444; 
    785790  color: #eee; 
     791  display: none;  /* hide until shown */ 
    786792} 
    787793#bedework #eventActions .bwMenuWidget ul { 
    788   margin: 1em 1em 1em 2em; 
     794  margin: 0.25em 0.5em 0.5em 2em; 
     795  padding: 0; 
     796
     797#bedework #eventActions .bwMenuWidget li { 
     798  margin: 0.25em 0 0 0; 
    789799  padding: 0; 
    790800} 
    791801#bedework #bwEditRecurWidget { 
    792   margin-left: 7em; 
     802  /*margin-left: 7em;*/ 
    793803} 
    794804#bedework #refreshEventAction { 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r2215 r2216  
    416416    <!-- note: the non-breaking spaces in the script bodies below are to avoid 
    417417         losing the script closing tags (which avoids browser problems) --> 
    418     <script type="text/javascript" src="{$resourcesRoot}/resources/bedework.js">&#160;</script> 
    419     <!-- 
    420     <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.2.6.min.js">&#160;</script> 
    421     <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.5.2.min.js">&#160;</script> 
    422     <link rel="stylesheet" href="/bedework-common/javascript/jquery/bedeworkJqueryThemes.css"/> --> 
    423418    <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-1.3.2.min.js">&#160;</script> 
    424419    <script type="text/javascript" src="/bedework-common/javascript/jquery/jquery-ui-1.7.1.custom.min.js">&#160;</script> 
    425420    <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/jquery-ui-1.7.1.custom.css"/> 
    426421    <link rel="stylesheet" href="/bedework-common/javascript/jquery/css/custom-theme/bedeworkJquery.css"/> 
     422    <script type="text/javascript" src="{$resourcesRoot}/resources/bedework.js">&#160;</script> 
    427423 
    428424    <xsl:if test="/bedework/page='modSchedulingPrefs' or 
     
    547543        </xsl:comment> 
    548544      </script> 
     545    </xsl:if> 
     546 
     547    <xsl:if test="/bedework/page='event'"> 
     548      <!-- jQuery functions for detailed event view --> 
     549      <script type="text/javascript" src="{$resourcesRoot}/resources/bedeworkEvent.js">&#160;</script> 
    549550    </xsl:if> 
    550551 
     
    17921793            <xsl:choose> 
    17931794              <xsl:when test="recurring='true' or recurrenceId != ''"> 
    1794                 <a href="javascript:toggleVisibility('bwDownloadWidget','bwMenuWidget');changeClass('bwEditRecurWidget','invisible');" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
    1795                   <img src="{$resourcesRoot}/resources/std-icalDownload-icon-small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 
    1796                   Download 
    1797                 </a> 
    1798                 <div id="bwDownloadWidget" class="invisible"> 
    1799                   <ul> 
    1800                     <li> 
    1801                       <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;nocache=no&amp;contentName={$eventIcalName}" onclick="changeClass('bwDownloadWidget','invisible')"> 
    1802                         master (all recurrences) 
    1803                       </a> 
    1804                     </li> 
    1805                     <li> 
    1806                       <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" onclick="changeClass('bwDownloadWidget','invisible')"> 
    1807                         instance (just this event) 
    1808                       </a> 
    1809                     </li> 
    1810                   </ul> 
    1811                 </div> 
    1812               </xsl:when> 
    1813               <xsl:otherwise> 
    1814                 <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
    1815                   <img src="{$resourcesRoot}/resources/std-icalDownload-icon-small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 
    1816                   Download 
    1817                 </a> 
    1818               </xsl:otherwise> 
    1819             </xsl:choose> 
    1820             <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-content"> 
    1821               | 
    1822               <xsl:choose> 
    1823                 <xsl:when test="recurring='true' or recurrenceId != ''"> 
    1824                   <a href="javascript:toggleVisibility('bwEditRecurWidget','bwMenuWidget');changeClass('bwDownloadWidget','invisible');" title="edit event"> 
    1825                     <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 
    1826                     Edit 
    1827                   </a> 
    1828                   <div id="bwEditRecurWidget" class="invisible"> 
    1829                     <ul> 
    1830                       <li> 
    1831                         <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="edit master (recurring event)"  onclick="changeClass('bwEditRecurWidget','invisible')"> 
    1832                           master event 
    1833                         </a> 
    1834                       </li> 
    1835                       <li> 
    1836                         <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="edit instance (recurring event)" onclick="changeClass('bwEditRecurWidget','invisible')"> 
    1837                           instance 
    1838                         </a> 
    1839                       </li> 
    1840                     </ul> 
    1841                   </div> 
    1842                 </xsl:when> 
    1843                 <xsl:otherwise> 
    1844                   <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="edit event"> 
    1845                     <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/> 
    1846                     Edit 
    1847                   </a> 
    1848                 </xsl:otherwise> 
    1849               </xsl:choose> 
    1850             </xsl:if> 
    1851             | 
    1852             <xsl:choose> 
    1853               <xsl:when test="recurring='true' or recurrenceId != ''"> 
    18541795                <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 
    18551796                Copy: 
     
    18651806            <xsl:if test="not(currentAccess/current-user-privilege-set/privilege/write-content) and not(recurring='true' or recurrenceId != '')"> 
    18661807              <!-- temporarily hide from Recurring events --> 
    1867               | 
    18681808              <xsl:choose> 
    18691809                <xsl:when test="recurring='true' or recurrenceId != ''"> 
     
    18841824                 currently too confusing since the current user may be able to add events to the 
    18851825                 other calendar, making the ownership test a bad test --> 
    1886               | 
    18871826              <xsl:variable name="subname" select="subscription/encodedName"/> 
    18881827              <a href="{$subscriptions-fetchForUpdate}&amp;subname={$subname}" title="manage/view subscription"> 
     
    18921831            </xsl:if> 
    18931832            <xsl:if test="subscription/removeable != 'true'"> 
    1894               | 
    18951833              <xsl:choose> 
    18961834                <xsl:when test="recurring='true' or recurrenceId != ''"> 
     
    19071845              </xsl:choose> 
    19081846            </xsl:if> 
     1847 
     1848            <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-content"> 
     1849              <xsl:choose> 
     1850                <xsl:when test="recurring='true' or recurrenceId != ''"> 
     1851                  <div id="bwEditRecurButton" class="bwMenuButton"> 
     1852                    <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 
     1853                    Edit 
     1854                    <div id="bwEditRecurWidget" class="bwMenuWidget"> 
     1855                      <ul> 
     1856                        <li> 
     1857                          <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="edit master (recurring event)"  onclick="changeClass('bwEditRecurWidget','invisible')"> 
     1858                            master 
     1859                          </a> 
     1860                        </li> 
     1861                        <li> 
     1862                          <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="edit instance (recurring event)" onclick="changeClass('bwEditRecurWidget','invisible')"> 
     1863                            instance 
     1864                          </a> 
     1865                        </li> 
     1866                      </ul> 
     1867                    </div> 
     1868                  </div> 
     1869                </xsl:when> 
     1870                <xsl:otherwise> 
     1871                  <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="edit event" class="bwMenuButton"> 
     1872                    <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/> 
     1873                    Edit 
     1874                  </a> 
     1875                </xsl:otherwise> 
     1876              </xsl:choose> 
     1877            </xsl:if> 
     1878            <xsl:choose> 
     1879              <xsl:when test="recurring='true' or recurrenceId != ''"> 
     1880                <div id="bwDownloadButton" class="bwMenuButton"> 
     1881                  <img src="{$resourcesRoot}/resources/std-icalDownload-icon-small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 
     1882                  Download 
     1883                  <div id="bwDownloadWidget" class="bwMenuWidget"> 
     1884                    <ul> 
     1885                      <li> 
     1886                        <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;nocache=no&amp;contentName={$eventIcalName}" onclick="changeClass('bwDownloadWidget','invisible')"> 
     1887                          master 
     1888                        </a> 
     1889                      </li> 
     1890                      <li> 
     1891                        <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" onclick="changeClass('bwDownloadWidget','invisible')"> 
     1892                          instance 
     1893                        </a> 
     1894                      </li> 
     1895                    </ul> 
     1896                  </div> 
     1897                </div> 
     1898              </xsl:when> 
     1899              <xsl:otherwise> 
     1900                <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
     1901                  <img src="{$resourcesRoot}/resources/std-icalDownload-icon-small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 
     1902                  Download 
     1903                </a> 
     1904              </xsl:otherwise> 
     1905            </xsl:choose> 
    19091906          </div> 
    19101907          <!-- Display type of event --> 
  • trunk/deployment/webuser/webapp/resources/demoskins/resources/bedework.js

    r2135 r2216  
    5050  field.value = val; 
    5151} 
    52  
    5352// show hide items using a checkbox 
    5453function swapVisible(obj,id) {