Browse Source

修复bug

laiguoran 2 years ago
parent
commit
b0af91a37e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/public/js/material_exponent.js

+ 4 - 4
app/public/js/material_exponent.js

@@ -436,11 +436,11 @@ $(document).ready(() => {
     if (!readOnly) {
         $('#add').click(materialExponentSpreadObj.add);
         $('#del').click(materialExponentSpreadObj.del);
+        materialExponentSpread.bind(spreadNS.Events.SelectionChanged, materialExponentSpreadObj.selectionChanged);
+        materialExponentSpread.bind(spreadNS.Events.EditEnded, materialExponentSpreadObj.editEnded);
+        materialExponentSpread.bind(spreadNS.Events.ButtonClicked, materialExponentSpreadObj.buttonClicked);
+        materialExponentSpread.bind(spreadNS.Events.ClipboardPasted, materialExponentSpreadObj.clipboardPasted);
         if (!editForAudit) {
-            materialExponentSpread.bind(spreadNS.Events.SelectionChanged, materialExponentSpreadObj.selectionChanged);
-            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({