[PE] Bug 55292: set appropriate tab when inserting image/table/chart
This commit is contained in:
parent
8117d3532d
commit
2b00aa2285
|
@ -268,14 +268,26 @@ define([
|
||||||
|
|
||||||
onInsertTable: function() {
|
onInsertTable: function() {
|
||||||
// this._settings[Common.Utils.documentSettingsType.Table].needShow = true;
|
// this._settings[Common.Utils.documentSettingsType.Table].needShow = true;
|
||||||
|
var idx = this._priorityArr.indexOf(Common.Utils.documentSettingsType.Table);
|
||||||
|
if (idx>=0)
|
||||||
|
this._priorityArr.splice(idx, 1);
|
||||||
|
this._priorityArr.unshift(Common.Utils.documentSettingsType.Table);
|
||||||
},
|
},
|
||||||
|
|
||||||
onInsertImage: function() {
|
onInsertImage: function() {
|
||||||
// this._settings[Common.Utils.documentSettingsType.Image].needShow = true;
|
// this._settings[Common.Utils.documentSettingsType.Image].needShow = true;
|
||||||
|
var idx = this._priorityArr.indexOf(Common.Utils.documentSettingsType.Image);
|
||||||
|
if (idx>=0)
|
||||||
|
this._priorityArr.splice(idx, 1);
|
||||||
|
this._priorityArr.unshift(Common.Utils.documentSettingsType.Image);
|
||||||
},
|
},
|
||||||
|
|
||||||
onInsertChart: function() {
|
onInsertChart: function() {
|
||||||
// this._settings[Common.Utils.documentSettingsType.Chart].needShow = true;
|
// this._settings[Common.Utils.documentSettingsType.Chart].needShow = true;
|
||||||
|
var idx = this._priorityArr.indexOf(Common.Utils.documentSettingsType.Chart);
|
||||||
|
if (idx>=0)
|
||||||
|
this._priorityArr.splice(idx, 1);
|
||||||
|
this._priorityArr.unshift(Common.Utils.documentSettingsType.Chart);
|
||||||
},
|
},
|
||||||
|
|
||||||
onInsertShape: function() {
|
onInsertShape: function() {
|
||||||
|
|
Loading…
Reference in a new issue