Changeset 2921

Show
Ignore:
Timestamp:
05/30/10 21:42:46
Author:
johnsa
Message:

user client: added range navigation to scheduling grid

Files:

Legend:

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

    r2920 r2921  
    158158  display: none; 
    159159} 
     160#bwSchedProcessingMsg { 
     161  font-style: italic; 
     162  color: #666; 
     163  background-color: white; 
     164} 
    160165#bwScheduleControls { 
    161166  margin: 1.5em 1em; 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js

    r2920 r2921  
    457457      navigationHtml += '<div id="bwGridNav">'; 
    458458      navigationHtml += '  <a href="javascript:bwGrid.gotoPreviousRange()" title="previous date range">'; 
    459       navigationHtml += '    <img src="' + this.resourcesRoot + '/images/std-arrow-left.gif" width="13" height="16" alt="previous date range" border="0"/>'; 
     459      navigationHtml += '    <img src="' + this.resourcesRoot + '/images/std-arrow-left-sched.gif" width="13" height="16" alt="previous date range" border="0"/>'; 
    460460      navigationHtml += '  </a>'; 
    461461      navigationHtml += '  <a href="javascript:bwGrid.gotoNextRange()" title="next date range">'; 
    462       navigationHtml += '    <img src="' + this.resourcesRoot + '/images/std-arrow-right.gif" width="13" height="16" alt="next date range" border="0"/>'; 
     462      navigationHtml += '    <img src="' + this.resourcesRoot + '/images/std-arrow-right-sched.gif" width="13" height="16" alt="next date range" border="0"/>'; 
    463463      navigationHtml += '  </a>'; 
    464464      navigationHtml += '</div>'; 
     465      navigationHtml += '<div id="bwSchedProcessingMsg">processing...</div>'; 
    465466       
    466467      // generate the date row - includes top left corner navigation buttons  
     
    776777        } 
    777778      ); 
     779       
     780      this.gotoNextRange = function() { 
     781        $("#bwSchedProcessingMsg").show(); 
     782        bwGrid.startRange.addDays(bwGrid.dayRange); 
     783        bwGrid.endRange.addDays(bwGrid.dayRange); 
     784        bwGrid.requestFreeBusy();  
     785      } 
     786       
     787      this.gotoPreviousRange = function() { 
     788        $("#bwSchedProcessingMsg").show(); 
     789        bwGrid.startRange.subtractDays(bwGrid.dayRange); 
     790        bwGrid.endRange.subtractDays(bwGrid.dayRange); 
     791        bwGrid.requestFreeBusy();  
     792      } 
    778793 
    779794      this.setDateTimeWidgets = function(startMils) { 
     
    933948      }); 
    934949       
     950      // hide the processing message 
     951      $("#bwSchedProcessingMsg").fadeOut(100); 
    935952 
    936953    } catch (e) { 
     
    938955    } 
    939956     
    940     /*var myString = ""; 
    941     for(i=0; i < this.fb.length; i++) { 
    942       myString += this.fb[i][0]+ " " + this.fb[i][1] +"\n"; 
    943     } 
    944     alert("Fb values:\n" + myString); 
    945     */ 
    946957  }; 
    947958}; 
     
    966977Date.prototype.addDays = function(days) { 
    967978  this.setDate(this.getDate() + days); 
     979};  
     980Date.prototype.subtractDays = function(days) { 
     981  this.setDate(this.getDate() - days); 
    968982};  
    969983Date.prototype.addHours = function(hours) {