Changeset 18352

Show
Ignore:
Timestamp:
11/14/08 05:08:22 (2 months ago)
Author:
sjmittal
Message:

change to make editable at single click and view details at double click

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/core/web/src/scheduleView.js

    r18343 r18352  
    112112                var result = ""; 
    113113                if(record.data[dataIndex]) { 
    114                         var anchor = 'x-'+colIndex+'-'+record.id; 
    115                         result = String.format('<a href="javascript:showDateTimes(\'{0}\', {1});" name="{0}" id="{0}" class="dateAnchor" title="{2}">{3}</a>', anchor, record.id, startEndDateTitle, record.data[dataIndex].format('M d,y')); 
     114                        result = record.data[dataIndex].format('M d,y'); 
    116115                } 
    117116        return result; 
     
    163162            result += ' '; 
    164163        } 
    165                 result += String.format('<a href="{0}/servlet/ScheduleController/TaskView?module=60&action=1&id={1}">{2}</a>',JSPRootURL, record.id, value)
     164                result += value
    166165        return result; 
    167166    }; 
     
    286285        var grid = new Ext.ux.maximgb.treegrid.GridPanel({ 
    287286              store: store, 
    288               clicksToEdit: 2
     287              clicksToEdit: 1
    289288              master_column_id : 'name', 
    290289              cm: colModel, 
     
    443442                                                }); 
    444443                                                return false; 
     444                                        }, 
     445                                        celldblclick : function ( grid, rowIndex, columnIndex, e ) { 
     446                                                var record = that.getStore().getAt(rowIndex); 
     447                                                if(record) { 
     448                                                        self.location = JSPRootURL + "/servlet/ScheduleController/TaskView?module=60&action=1&id=" + record.id; 
     449                                                } 
    445450                                        } 
    446451                          } 
  • trunk/core/web/src/util.js

    r18343 r18352  
    845845        try { 
    846846          //Firefox, Mozilla, Opera, etc. 
    847           parser=new DOMParser(); 
     847          var parser=new DOMParser(); 
    848848          xmlDoc=parser.parseFromString(text,"text/xml"); 
    849849        } catch(e) {