Changeset 18301

Show
Ignore:
Timestamp:
11/05/08 11:26:01 (2 months ago)
Author:
avinash
Message:

blog-it - some work capture UI changes as per Dorothy mock up

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/core/src/net/project/view/pages/assignments/Timesheet.java

    r18298 r18301  
    102102 
    103103        private String invalidErrorKey; 
     104         
     105        private boolean isAssignmentFound; 
    104106 
    105107        public void onActivate() { 
     
    120122                date = userDateFormat.formatDate(Calendar.getInstance().getTime(), "EEEEE, MMM dd, yyyy"); 
    121123 
    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                  
    132124                String objectId = request.getParameter("objectId"); 
    133125                scrollType = StringUtils.isEmpty(request.getParameter("scrollType")) ? "week" : request.getParameter("scrollType"); 
     
    144136                        if(org.apache.commons.collections.CollectionUtils.isNotEmpty(assignments)){ 
    145137                                getModifiedTimeSheetEntries(objectId, assignments, request); 
     138                                isAssignmentFound = true; 
     139                        }else{ 
     140                                isAssignmentFound = false; 
    146141                        } 
    147142                } 
     
    442437        } 
    443438 
     439        /** 
     440         * @return the isAssignmentFound 
     441         */ 
     442        public boolean getIsAssignmentFound() { 
     443                return isAssignmentFound; 
     444        } 
    444445} 
  • trunk/core/web/css/blog.css

    r18298 r18301  
    515515} 
    516516 
    517 / * Work capture related css */ 
     517/* Work capture related css */ 
    518518.calendar-table { 
    519519        font-family: Arial, Helvetica, sans-serif; 
    520520        font-size: 11px; 
    521521        background: #f3f3fa; 
    522         border-bottom: 1px solid Gray; /* background: url(../images/table-calendar-bg.png) repeat-x bottom; */ 
     522        border-bottom: 1px solid Gray; 
    523523        text-align: center; 
    524524        vertical-align: middle; 
     
    723723        padding-top: 2px; 
    724724        padding-bottom: 1px; 
    725         background-image: url('../images/menu/dialog-title-end.gif'); 
     725        background-image: url('../images/dialog-title-end.gif'); 
    726726        background-repeat: no-repeat; 
    727727        background-position: right; 
  • trunk/core/web/html/assignments/Timesheet.html

    r18298 r18301  
    77                                <tr> 
    88                                        <td width="100%" nowrap="nowrap"> 
     9                                                <t:if test="isAssignmentFound"> 
    910                                                <div id="entry-time"> 
    1011                                                        <span class="title" width="100%">Time Entry :</span> 
     
    3132                                                                                                        <table align="center"> 
    3233                                                                                                                <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> 
    3435                                                                 
    3536                                                                                                                                <t:loop source="dateHeaders" value="dateHeader"> 
     
    4748                                                                                                                        </t:loop> 
    4849                                                                                                                 
    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> 
    5051                                                                                                                </tr> 
    5152                                                                                                            </table> 
     
    109110                                                        <img src="${JSPRootURL}/images/default/grid/loading.gif" align="middle" /> --> 
    110111                                                </div> <!-- End of timeWorkedDiv --> 
    111                                          
     112                                      
     113                                            </t:if>     
    112114                                        </td> 
    113115                                </tr> 
  • trunk/core/web/src/blogit.js

    r18298 r18301  
    494494                                        percentChanged(objectId, 'submit'); 
    495495                                } else { 
    496                                         return false; 
     496                                        document.getElementsByTagName('body')[0].appendChild(blogActionDiv); 
     497                                        saveBlogEntry(); 
    497498                                } 
    498499                        } 
  • trunk/core/web/src/workCapture.js

    r18298 r18301  
    3131                                javaScriptCode = javaScriptCode.substring(javaScriptCode.lastIndexOf(scriptTag)+scriptTag.length, javaScriptCode.lastIndexOf('<\/script>')); 
    3232                                eval(javaScriptCode.replace(/\n/g, '')); 
    33                                 if(typeof(timesValueArray) != 'undefined' && timesValueArray != null){ 
     33                                if(typeof(timesValueArray) != 'undefined' && timesValueArray != null && timesValueArray != ''){ 
    3434                                        timeValues = new Array(); 
    3535                                    timeValues = timesValueArray.split(","); 
     
    5454           }, 
    5555           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); 
    5757           } 
    5858        });