Changeset 20536
- Timestamp:
- 03/08/10 08:35:49 (5 months ago)
- Files:
-
- trunk/core/web/src/ScheduleMain.js (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/web/src/ScheduleMain.js
r20531 r20536 457 457 //use displayedValue if no value is specified. 458 458 document.getElementById(currentCellID).innerHTML = (value ? value : displayedValue); 459 if(value) 460 currentCellObject.className += ' editedCell'; 459 461 //Since we have made changes on cell padding for avoiding flicking, We need to again put those padding for making view as previous. 460 462 applyCellStyles() … … 523 525 }else{ 524 526 (currentField == 'wc'? handleTaskWorkCompleteEditing(object.value): handleTaskWorkPercentCompleteEditing(object)); 525 currentCellObject.className += ' editedCell';526 527 removeEditor(object.value); 527 528 }}, … … 530 531 } else { 531 532 (currentField == 'wc'? handleTaskWorkCompleteEditing(object.value): handleTaskWorkPercentCompleteEditing(object)); 532 currentCellObject.className += ' editedCell';533 533 removeEditor(object.value); 534 534 … … 537 537 538 538 if(currentField != 'wc' && currentField != 'wpc'){ 539 //Update current cell css as edited540 currentCellObject.className += ' editedCell';541 539 //Remove editor finally. 542 540 removeEditor(object.value); … … 587 585 if(unit =='none'){ 588 586 extAlert(errorAlertTitle, (currentField == 'd' ? invalidDurationUnitMsg : invalidWorkUnitMsg), Ext.MessageBox.ERROR); 587 removeEditor(); 589 588 return; 590 589 } 591 590 //if work value is not valid show alert and return. 592 if(!isValidNumber(workValue , true)){591 if(!isValidNumber(workValue)){ 593 592 extAlert(errorAlertTitle, (currentField == 'd' ? invalidDurationMsg : invalidWorkAmountMsg) ,Ext.MessageBox.ERROR); 593 removeEditor(); 594 594 return; 595 595 } … … 614 614 unit = getWorkUnit(unit.trim()); 615 615 if(unit !='none'){ 616 if(isValidNumber(workValue , true)){616 if(isValidNumber(workValue)){ 617 617 //We need actual old value for validation 618 618 var row = document.getElementById(currentEntryID); … … 1407 1407 return; 1408 1408 } 1409 if(!isValidNumber(workValue , true)){1409 if(!isValidNumber(workValue)){ 1410 1410 extAlert(errorAlertTitle, invalidWorkAmountMsg, Ext.MessageBox.ERROR); 1411 1411 workField.focus();
