Changeset 2218

Show
Ignore:
Timestamp:
06/02/09 11:23:49
Author:
johnsa
Message:

personal client: improvements to event menuing

Files:

Legend:

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

    r2216 r2218  
    783783  position: relative; 
    784784  float: right; 
    785   margin: 0 1em 0 0; 
     785  margin: 0 0.5em 0 0; 
    786786} 
    787787#bedework #eventActions .bwMenuWidget { 
     
    792792} 
    793793#bedework #eventActions .bwMenuWidget ul { 
    794   margin: 0.25em 0.5em 0.5em 2em
     794  margin: 6px 6px 6px 14px
    795795  padding: 0; 
    796796} 
     
    798798  margin: 0.25em 0 0 0; 
    799799  padding: 0; 
    800 
    801 #bedework #bwEditRecurWidget { 
    802   /*margin-left: 7em;*/ 
     800  list-style: none; 
    803801} 
    804802#bedework #refreshEventAction { 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r2216 r2218  
    17891789        <th colspan="2" class="commonHeader"> 
    17901790          <div id="eventActions"> 
    1791             <!-- download --> 
    1792             <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/> 
    1793             <xsl:choose> 
    1794               <xsl:when test="recurring='true' or recurrenceId != ''"> 
    1795                 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 
    1796                 Copy: 
    1797                 <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;copy=true" title="copy master (recurring event)">master</a>,<a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;copy=true" title="copy instance (recurring event)">instance</a> 
    1798               </xsl:when> 
    1799               <xsl:otherwise> 
    1800                 <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;copy=true" title="copy event"> 
    1801                   <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/> 
    1802                   Copy 
    1803                 </a> 
    1804               </xsl:otherwise> 
    1805             </xsl:choose> 
     1791 
     1792            <xsl:if test="currentAccess/current-user-privilege-set/privilege/unbind"> 
     1793              <xsl:choose> 
     1794                <xsl:when test="recurring='true' or recurrenceId != ''"> 
     1795                  <div id="bwDeleteRecurButton" class="bwMenuButton"> 
     1796                    <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
     1797                    Delete 
     1798                    <div id="bwDeleteRecurWidget" class="bwMenuWidget"> 
     1799                      <ul> 
     1800                        <li> 
     1801                          <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="delete master (recurring event)" onclick="return confirm('Delete all recurrences of this event?');"> 
     1802                            all 
     1803                          </a> 
     1804                        </li> 
     1805                        <li> 
     1806                          <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="delete this instance (recurring event)" onclick="return confirm('Delete this event?');"> 
     1807                            instance 
     1808                          </a> 
     1809                        </li> 
     1810                      </ul> 
     1811                    </div> 
     1812                  </div> 
     1813                </xsl:when> 
     1814                <xsl:otherwise> 
     1815                  <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="delete event" class="bwMenuButton" onclick="return confirm('Delete this event?');"> 
     1816                    <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
     1817                    Delete 
     1818                  </a> 
     1819                </xsl:otherwise> 
     1820              </xsl:choose> 
     1821            </xsl:if> 
     1822 
    18061823            <xsl:if test="not(currentAccess/current-user-privilege-set/privilege/write-content) and not(recurring='true' or recurrenceId != '')"> 
    18071824              <!-- temporarily hide from Recurring events --> 
    18081825              <xsl:choose> 
    18091826                <xsl:when test="recurring='true' or recurrenceId != ''"> 
    1810                   <img src="{$resourcesRoot}/resources/std-ical_iconLinkDkGray.gif" width="12" height="16" border="0" alt="add event reference"/> 
    1811                   Link: 
    1812                   <a href="{$addEventRef}&amp;calPath={$calPath}&amp;guid={$guid}" title="add master event reference to a calendar">master</a>,<a href="{$addEventRef}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="add event reference to a calendar">instance</a> 
     1827                  <div id="bwLinkRecurButton" class="bwMenuButton"> 
     1828                    <img src="{$resourcesRoot}/resources/std-ical_iconLinkDkGray.gif" width="12" height="16" border="0" alt="add event reference"/> 
     1829                    Link 
     1830                    <div id="bwLinkRecurWidget" class="bwMenuWidget"> 
     1831                      <ul> 
     1832                        <li> 
     1833                          <a href="{$addEventRef}&amp;calPath={$calPath}&amp;guid={$guid}" title="add master event reference to a calendar"> 
     1834                            all 
     1835                          </a> 
     1836                        </li> 
     1837                        <li> 
     1838                          <a href="{$addEventRef}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="add this event reference to a calendar"> 
     1839                            instance 
     1840                          </a> 
     1841                        </li> 
     1842                      </ul> 
     1843                    </div> 
     1844                  </div> 
    18131845                </xsl:when> 
    18141846                <xsl:otherwise> 
    1815                   <a href="{$addEventRef}&amp;calPath={$calPath}&amp;guid={$guid}" title="add event reference to a calendar"
     1847                  <a href="{$addEventRef}&amp;calPath={$calPath}&amp;guid={$guid}" title="add event reference to a calendar" class="bwMenuButton"
    18161848                    <img src="{$resourcesRoot}/resources/std-ical_iconLinkDkGray.gif" width="12" height="16" border="0" alt="add event reference"/> 
    18171849                    Link 
     
    18201852              </xsl:choose> 
    18211853            </xsl:if> 
    1822             <xsl:if test="owner != /bedework/userid and public='true'"> 
    1823             <!-- provide this link for public subscriptions; subscriptions to user calendars are 
    1824                  currently too confusing since the current user may be able to add events to the 
    1825                  other calendar, making the ownership test a bad test --> 
    1826               <xsl:variable name="subname" select="subscription/encodedName"/> 
    1827               <a href="{$subscriptions-fetchForUpdate}&amp;subname={$subname}" title="manage/view subscription"> 
    1828                 <img src="{$resourcesRoot}/resources/std-ical_iconSubsDkGray.gif" width="12" height="16" border="0" alt="manage/view subscription"/> 
    1829                 Subscription 
    1830               </a> 
    1831             </xsl:if> 
    1832             <xsl:if test="subscription/removeable != 'true'"> 
    1833               <xsl:choose> 
    1834                 <xsl:when test="recurring='true' or recurrenceId != ''"> 
    1835                   <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
    1836                   Delete: 
    1837                   <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="delete master (recurring event)">all</a>,<a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 
    1838                 </xsl:when> 
    1839                 <xsl:otherwise> 
    1840                   <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="delete event"> 
    1841                     <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
    1842                     Delete 
    1843                   </a> 
    1844                 </xsl:otherwise> 
    1845               </xsl:choose> 
    1846             </xsl:if> 
     1854 
     1855            <xsl:choose> 
     1856              <xsl:when test="recurring='true' or recurrenceId != ''"> 
     1857                <div id="bwCopyRecurButton" class="bwMenuButton"> 
     1858                  <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 
     1859                  Copy 
     1860                  <div id="bwCopyRecurWidget" class="bwMenuWidget"> 
     1861                    <ul> 
     1862                      <li> 
     1863                        <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;copy=true" title="copy master (recurring event)"> 
     1864                          all 
     1865                        </a> 
     1866                      </li> 
     1867                      <li> 
     1868                        <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;copy=true" title="copy this instance (recurring event)"> 
     1869                          instance 
     1870                        </a> 
     1871                      </li> 
     1872                    </ul> 
     1873                  </div> 
     1874                </div> 
     1875              </xsl:when> 
     1876              <xsl:otherwise> 
     1877                <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;copy=true" title="copy event" class="bwMenuButton"> 
     1878                  <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/> 
     1879                  Copy 
     1880                </a> 
     1881              </xsl:otherwise> 
     1882            </xsl:choose> 
    18471883 
    18481884            <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-content"> 
     
    18551891                      <ul> 
    18561892                        <li> 
    1857                           <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="edit master (recurring event)"  onclick="changeClass('bwEditRecurWidget','invisible')"
    1858                             master 
     1893                          <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="edit master (recurring event)"
     1894                            all 
    18591895                          </a> 
    18601896                        </li> 
    18611897                        <li> 
    1862                           <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="edit instance (recurring event)" onclick="changeClass('bwEditRecurWidget','invisible')"> 
     1898                          <a href="{$editEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="edit this instance (recurring event)"> 
    18631899                            instance 
    18641900                          </a> 
     
    18761912              </xsl:choose> 
    18771913            </xsl:if> 
     1914 
     1915            <!-- download --> 
     1916            <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/> 
    18781917            <xsl:choose> 
    18791918              <xsl:when test="recurring='true' or recurrenceId != ''"> 
     
    18841923                    <ul> 
    18851924                      <li> 
    1886                         <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;nocache=no&amp;contentName={$eventIcalName}" onclick="changeClass('bwDownloadWidget','invisible')"> 
    1887                           master 
     1925                        <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;nocache=no&amp;contentName={$eventIcalName}" title="download master (recurring event)"> 
     1926                          all 
    18881927                        </a> 
    18891928                      </li> 
    18901929                      <li> 
    1891                         <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" onclick="changeClass('bwDownloadWidget','invisible')"> 
     1930                        <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" title="download this instance (recurring event)"> 
    18921931                          instance 
    18931932                        </a> 
     
    18981937              </xsl:when> 
    18991938              <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"> 
     1939                <a href="{$export}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" class="bwMenuButton" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
    19011940                  <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"/> 
    19021941                  Download 
     
    23962435            <th colspan="2" class="commonHeader"> 
    23972436              <div id="eventActions"> 
    2398                 <xsl:if test="not(form/recurringEntity = 'true' and recurrenceId = '')"> 
    2399                   <!-- don't display if a master recurring event (because the master can't be viewed) --> 
    2400                   <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    2401                     <img src="{$resourcesRoot}/resources/glassFill-icon-viewGray.gif" width="13" height="13" border="0" alt="view"/> 
    2402                     View 
    2403                   </a> 
    2404                     | 
    2405                 </xsl:if> 
    24062437                <xsl:choose> 
    24072438                  <xsl:when test="recurrenceId != ''"> 
    2408                     <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
    2409                     Delete: 
    2410                     <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="delete master (recurring event)">all</a>, 
    2411                     <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 
     2439                    <div id="bwDeleteRecurButton" class="bwMenuButton"> 
     2440                      <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
     2441                      Delete 
     2442                      <div id="bwDeleteRecurWidget" class="bwMenuWidget"> 
     2443                        <ul> 
     2444                          <li> 
     2445                            <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}" title="delete master (recurring event)" onclick="return confirm('Delete all recurrences of this event?');"> 
     2446                              all 
     2447                            </a> 
     2448                          </li> 
     2449                          <li> 
     2450                            <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="delete this instance (recurring event)" onclick="return confirm('Delete this event?');"> 
     2451                              instance 
     2452                            </a> 
     2453                          </li> 
     2454                        </ul> 
     2455                      </div> 
     2456                    </div> 
    24122457                  </xsl:when> 
    24132458                  <xsl:otherwise> 
    2414                     <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="delete event"
     2459                    <a href="{$delEvent}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" title="delete event" class="bwMenuButton" onclick="return confirm('Delete this event?');"
    24152460                      <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 
    24162461                      Delete 
     
    24212466                  </xsl:otherwise> 
    24222467                </xsl:choose> 
     2468                <xsl:if test="not(form/recurringEntity = 'true' and recurrenceId = '')"> 
     2469                  <!-- don't display if a master recurring event (because the master can't be viewed) --> 
     2470                  <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="bwMenuButton"> 
     2471                    <img src="{$resourcesRoot}/resources/glassFill-icon-viewGray.gif" width="13" height="13" border="0" alt="view"/> 
     2472                    View 
     2473                  </a> 
     2474                </xsl:if> 
    24232475              </div> 
    24242476              <!-- Display type of event --> 
  • trunk/deployment/webuser/webapp/resources/demoskins/resources/bedeworkEvent.js

    r2216 r2218  
    5454    } 
    5555  ); 
     56 
     57  // copy button 
     58  $("#bwCopyRecurButton").hover( 
     59    function () { 
     60      $("#bwCopyRecurWidget").show(); 
     61    }, 
     62    function () { 
     63      $("#bwCopyRecurWidget").hide(); 
     64    } 
     65  ); 
     66 
     67  // delete button 
     68  $("#bwDeleteRecurButton").hover( 
     69    function () { 
     70      $("#bwDeleteRecurWidget").show(); 
     71    }, 
     72    function () { 
     73      $("#bwDeleteRecurWidget").hide(); 
     74    } 
     75  ); 
     76 
     77  // link button 
     78  $("#bwLinkRecurButton").hover( 
     79    function () { 
     80      $("#bwLinkRecurWidget").show(); 
     81    }, 
     82    function () { 
     83      $("#bwLinkRecurWidget").hide(); 
     84    } 
     85  ); 
     86 
    5687}); 
    5788