rename color event

This commit is contained in:
Danis
2025-10-28 13:50:37 +04:00
parent cbedb841e9
commit a32589fcae
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ define([
'statusbar:setcompact': _.bind(this.onChangeViewMode, this)
},
'Toolbar': {
'statusbar:setcolor': _.bind(this.setWorksheetColor, this),
'sheet:setcolor': _.bind(this.setWorksheetColor, this),
'sheet:changename': _.bind(function(){
this.api.asc_closeCellEditor();
this.renameWorksheet();

View File

@ -3393,7 +3393,7 @@ define([
});
this.mnuTabColorToolbar.menu.setInnerMenu([{ menu: this.mnuTabColorToolbarPicker, index: 0 }]);
this.mnuTabColorToolbarPicker.on('select', _.bind(function(picker, color) {
this.fireEvent('statusbar:setcolor', [color]);
this.fireEvent('sheet:setcolor', [color]);
setTimeout(_.bind(function() {
this.btnFormatCell.menu.hide();
}, this), 1);