[SSE] Show rules only for current worksheet
This commit is contained in:
parent
3b673e6be4
commit
abcb2d78e3
|
@ -226,17 +226,17 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesManagerDlg.templa
|
||||||
{ value: Asc.c_oAscSelectionForCFType.table, displayValue: this.textThisTable, sheetIndex: -1 },
|
{ value: Asc.c_oAscSelectionForCFType.table, displayValue: this.textThisTable, sheetIndex: -1 },
|
||||||
{ value: Asc.c_oAscSelectionForCFType.pivot, displayValue: this.textThisPivot, sheetIndex: -1 }
|
{ value: Asc.c_oAscSelectionForCFType.pivot, displayValue: this.textThisPivot, sheetIndex: -1 }
|
||||||
];
|
];
|
||||||
if (wc>1) {
|
// if (wc>1) {
|
||||||
while (++i < wc) {
|
// while (++i < wc) {
|
||||||
if (!this.api.asc_isWorksheetHidden(i) && i!==this.currentSheet) {
|
// if (!this.api.asc_isWorksheetHidden(i) && i!==this.currentSheet) {
|
||||||
items.push({
|
// items.push({
|
||||||
displayValue:this.api.asc_getWorksheetName(i),
|
// displayValue:this.api.asc_getWorksheetName(i),
|
||||||
value: Asc.c_oAscSelectionForCFType.worksheet,
|
// value: Asc.c_oAscSelectionForCFType.worksheet,
|
||||||
sheetIndex: i
|
// sheetIndex: i
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
this.cmbScope.setData(items);
|
this.cmbScope.setData(items);
|
||||||
this.cmbScope.setValue(Asc.c_oAscSelectionForCFType.selection);
|
this.cmbScope.setValue(Asc.c_oAscSelectionForCFType.selection);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue