Changeset 18301
- Timestamp:
- 11/05/08 11:26:01 (2 months ago)
- Files:
-
- trunk/core/src/net/project/view/pages/assignments/Timesheet.java (modified) (4 diffs)
- trunk/core/web/css/blog.css (modified) (2 diffs)
- trunk/core/web/html/assignments/Timesheet.html (modified) (4 diffs)
- trunk/core/web/src/blogit.js (modified) (1 diff)
- trunk/core/web/src/workCapture.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/src/net/project/view/pages/assignments/Timesheet.java
r18298 r18301 102 102 103 103 private String invalidErrorKey; 104 105 private boolean isAssignmentFound; 104 106 105 107 public void onActivate() { … … 120 122 date = userDateFormat.formatDate(Calendar.getInstance().getTime(), "EEEEE, MMM dd, yyyy"); 121 123 122 /*hoursModel = new ArrayList<String>();123 for (int hourIndex = 1; hourIndex <= 12; hourIndex++) {124 hoursModel.add(hourIndex < 10 ? "0" + hourIndex : "" + hourIndex);125 }126 127 minutesModel = new ArrayList<String>();128 for (int minuteIndex = 0; minuteIndex <= 59; minuteIndex++) {129 minutesModel.add(minuteIndex < 10 ? "0" + minuteIndex : "" + minuteIndex);130 }*/131 132 124 String objectId = request.getParameter("objectId"); 133 125 scrollType = StringUtils.isEmpty(request.getParameter("scrollType")) ? "week" : request.getParameter("scrollType"); … … 144 136 if(org.apache.commons.collections.CollectionUtils.isNotEmpty(assignments)){ 145 137 getModifiedTimeSheetEntries(objectId, assignments, request); 138 isAssignmentFound = true; 139 }else{ 140 isAssignmentFound = false; 146 141 } 147 142 } … … 442 437 } 443 438 439 /** 440 * @return the isAssignmentFound 441 */ 442 public boolean getIsAssignmentFound() { 443 return isAssignmentFound; 444 } 444 445 } trunk/core/web/css/blog.css
r18298 r18301 515 515 } 516 516 517 / * Work capture related css */517 /* Work capture related css */ 518 518 .calendar-table { 519 519 font-family: Arial, Helvetica, sans-serif; 520 520 font-size: 11px; 521 521 background: #f3f3fa; 522 border-bottom: 1px solid Gray; /* background: url(../images/table-calendar-bg.png) repeat-x bottom; */522 border-bottom: 1px solid Gray; 523 523 text-align: center; 524 524 vertical-align: middle; … … 723 723 padding-top: 2px; 724 724 padding-bottom: 1px; 725 background-image: url('../images/ menu/dialog-title-end.gif');725 background-image: url('../images/dialog-title-end.gif'); 726 726 background-repeat: no-repeat; 727 727 background-position: right; trunk/core/web/html/assignments/Timesheet.html
r18298 r18301 7 7 <tr> 8 8 <td width="100%" nowrap="nowrap"> 9 <t:if test="isAssignmentFound"> 9 10 <div id="entry-time"> 10 11 <span class="title" width="100%">Time Entry :</span> … … 31 32 <table align="center"> 32 33 <tr class='calendar-table'> 33 <td><img src="${JSPRootURL}/images/icons/left-black-pointing.gif" border='0' onclick="scroll('${scrollBackStartDate}', '${scrollType}');" /></td>34 <td><img src="${JSPRootURL}/images/icons/left-black-pointing.gif" border='0' onclick="scroll('${scrollBackStartDate}', '${scrollType}');" style="cursor:pointer;"/></td> 34 35 35 36 <t:loop source="dateHeaders" value="dateHeader"> … … 47 48 </t:loop> 48 49 49 <td><img src="${JSPRootURL}/images/icons/right-black-pointing.gif" border='0' align="right" onclick="scroll('${scrollForwardStartDate}','${scrollType}');" /></td>50 <td><img src="${JSPRootURL}/images/icons/right-black-pointing.gif" border='0' align="right" onclick="scroll('${scrollForwardStartDate}','${scrollType}');" style="cursor:pointer;"/></td> 50 51 </tr> 51 52 </table> … … 109 110 <img src="${JSPRootURL}/images/default/grid/loading.gif" align="middle" /> --> 110 111 </div> <!-- End of timeWorkedDiv --> 111 112 113 </t:if> 112 114 </td> 113 115 </tr> trunk/core/web/src/blogit.js
r18298 r18301 494 494 percentChanged(objectId, 'submit'); 495 495 } else { 496 return false; 496 document.getElementsByTagName('body')[0].appendChild(blogActionDiv); 497 saveBlogEntry(); 497 498 } 498 499 } trunk/core/web/src/workCapture.js
r18298 r18301 31 31 javaScriptCode = javaScriptCode.substring(javaScriptCode.lastIndexOf(scriptTag)+scriptTag.length, javaScriptCode.lastIndexOf('<\/script>')); 32 32 eval(javaScriptCode.replace(/\n/g, '')); 33 if(typeof(timesValueArray) != 'undefined' && timesValueArray != null ){33 if(typeof(timesValueArray) != 'undefined' && timesValueArray != null && timesValueArray != ''){ 34 34 timeValues = new Array(); 35 35 timeValues = timesValueArray.split(","); … … 54 54 }, 55 55 failure: function(result, response) { 56 extAlert(errorTitle, 'Error occured while getting timesheet entries', Ext.MessageBox.ERROR); 56 extAlert(errorTitle, 'Error occured while getting timesheet entries', Ext.MessageBox.ERROR); 57 57 } 58 58 });
