Browse Source

fix: 解决allowEdit为false时仍然允许进行边框编辑的问题。

master
菜猫子neko 4 years ago
parent
commit
bf47a7f620
  1. 11
      src/controllers/menuButton.js

11
src/controllers/menuButton.js

@ -942,7 +942,11 @@ const menuButton = {
//边框设置 //边框设置
$("#luckysheet-icon-border-all").click(function(){ $("#luckysheet-icon-border-all").click(function(){
// *如果禁止前台编辑,则中止下一步操作
if (!checkIsAllowEdit()) {
tooltip.info("", locale().pivotTable.errorNotAllowEdit);
return
}
if(!checkProtectionFormatCells(Store.currentSheetIndex)){ if(!checkProtectionFormatCells(Store.currentSheetIndex)){
return; return;
} }
@ -1100,6 +1104,11 @@ const menuButton = {
// border choose menu // border choose menu
$menuButton.find(".luckysheet-cols-menuitem").click(function(){ $menuButton.find(".luckysheet-cols-menuitem").click(function(){
// *如果禁止前台编辑,则中止下一步操作
if (!checkIsAllowEdit()) {
tooltip.info("", locale().pivotTable.errorNotAllowEdit);
return
}
$menuButton.hide(); $menuButton.hide();
luckysheetContainerFocus(); luckysheetContainerFocus();

Loading…
Cancel
Save