|
@@ -400,14 +400,16 @@ $(document).ready(() => {
|
|
|
};
|
|
|
materialExponentSpreadObj.refreshActn();
|
|
|
materialExponentSpread.bind(spreadNS.Events.SelectionChanged, materialExponentSpreadObj.selectionChanged);
|
|
|
- materialExponentSpread.bind(spreadNS.Events.ClipboardPasted, materialExponentSpreadObj.clipboardPasted);
|
|
|
- SpreadJsObj.addDeleteBind(materialExponentSpread, materialExponentSpreadObj.deletePress);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
if (!readOnly) {
|
|
|
$('#add').click(materialExponentSpreadObj.add);
|
|
|
$('#del').click(materialExponentSpreadObj.del);
|
|
|
materialExponentSpread.bind(spreadNS.Events.EditEnded, materialExponentSpreadObj.editEnded);
|
|
|
materialExponentSpread.bind(spreadNS.Events.ButtonClicked, materialExponentSpreadObj.buttonClicked);
|
|
|
+ materialExponentSpread.bind(spreadNS.Events.ClipboardPasted, materialExponentSpreadObj.clipboardPasted);
|
|
|
+ SpreadJsObj.addDeleteBind(materialExponentSpread, materialExponentSpreadObj.deletePress);
|
|
|
// 右键菜单
|
|
|
$.contextMenu({
|
|
|
selector: '#material-exponent-spread',
|