Ticket #5715: 5715.patch
File 5715.patch, 2.2 KB (added by , 14 years ago) |
---|
-
_source/plugins/tabletools/dialogs/tableCell.js
23 23 * @param dialogName 24 24 * @param callback [ childDialog ] 25 25 */ 26 function getDialogValue( dialogName, callback )26 function getDialogValue( dialogName, callback, cellDialog ) 27 27 { 28 28 var onOk = function() 29 29 { 30 30 releaseHandlers( this ); 31 callback( this ); 31 callback( this, cellDialog ); 32 cellDialog.changeFocus( true ); 32 33 }; 33 34 var onCancel = function() 34 35 { 35 36 releaseHandlers( this ); 37 cellDialog.changeFocus(); 36 38 }; 37 39 var bindToDialog = function( dialog ) 38 40 { … … 439 441 style : 'margin-left: 10px', 440 442 onClick : function() 441 443 { 442 var self = this; 443 getDialogValue( 'colordialog', function( colorDialog ) 444 getDialogValue( 'colordialog', function( colorDialog, cellDialog ) 444 445 { 445 self.getDialog().getContentElement( 'info', 'bgColor' ).setValue(446 cellDialog.getContentElement( 'info', 'bgColor' ).setValue( 446 447 colorDialog.getContentElement( 'picker', 'selectedColor' ).getValue() 447 448 ); 448 } );449 }, this.getDialog() ); 449 450 } 450 451 } 451 452 ] … … 489 490 style : 'margin-left: 10px', 490 491 onClick : function() 491 492 { 492 var self = this; 493 getDialogValue( 'colordialog', function( colorDialog ) 493 getDialogValue( 'colordialog', function( colorDialog, cellDialog ) 494 494 { 495 self.getDialog().getContentElement( 'info', 'borderColor' ).setValue(495 cellDialog.getContentElement( 'info', 'borderColor' ).setValue( 496 496 colorDialog.getContentElement( 'picker', 'selectedColor' ).getValue() 497 497 ); 498 } );498 }, this.getDialog() ); 499 499 } 500 500 } 501 501 ]