Browse Source

Merge pull request #977 from TomScavo/master

fix: 有多个 body 标签会造成页面直接崩溃,只取第一个body元素
master
mengshukeji 3 years ago
committed by GitHub
parent
commit
59aa5e6e07
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/controllers/alternateformat.js
  2. 2
      src/controllers/cellFormat.js
  3. 16
      src/controllers/conditionformat.js
  4. 4
      src/controllers/dataVerificationCtrl.js
  5. 2
      src/controllers/dropCell.js
  6. 2
      src/controllers/filter.js
  7. 2
      src/controllers/hyperlinkCtrl.js
  8. 8
      src/controllers/ifFormulaGenerator.js
  9. 4
      src/controllers/imageCtrl.js
  10. 8
      src/controllers/insertFormula.js
  11. 2
      src/controllers/locationCell.js
  12. 38
      src/controllers/menuButton.js
  13. 2
      src/controllers/moreFormat.js
  14. 2
      src/controllers/orderBy.js
  15. 14
      src/controllers/pivotTable.js
  16. 8
      src/controllers/protection.js
  17. 6
      src/controllers/resize.js
  18. 2
      src/controllers/searchReplace.js
  19. 2
      src/controllers/splitColumn.js
  20. 14
      src/global/createdom.js
  21. 4
      src/global/formula.js
  22. 12
      src/global/tooltip.js

6
src/controllers/alternateformat.js

@ -265,7 +265,7 @@ const alternateformat = {
let _this = this; let _this = this;
$("#luckysheet-modal-dialog-slider-alternateformat").remove(); $("#luckysheet-modal-dialog-slider-alternateformat").remove();
$("body").append(luckysheetAlternateformatHtml()); $("body").first().append(luckysheetAlternateformatHtml());
luckysheetsizeauto(); luckysheetsizeauto();
//关闭 //关闭
@ -727,7 +727,7 @@ const alternateformat = {
title = alternatingColors.selectionCellColor; title = alternatingColors.selectionCellColor;
} }
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-alternateformat-colorSelect-dialog", "id": "luckysheet-alternateformat-colorSelect-dialog",
"addclass": "luckysheet-alternateformat-colorSelect-dialog", "addclass": "luckysheet-alternateformat-colorSelect-dialog",
"title": title, "title": title,
@ -801,7 +801,7 @@ const alternateformat = {
const alternatingColors =_locale.alternatingColors; const alternatingColors =_locale.alternatingColors;
const locale_button = _locale.button; const locale_button = _locale.button;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-alternateformat-rangeDialog", "id": "luckysheet-alternateformat-rangeDialog",
"addclass": "luckysheet-alternateformat-rangeDialog", "addclass": "luckysheet-alternateformat-rangeDialog",
"title": alternatingColors.selectRange, "title": alternatingColors.selectRange,

2
src/controllers/cellFormat.js

@ -114,7 +114,7 @@ function initialCellFormatModel(){
const locale_button = _locale.button; const locale_button = _locale.button;
//Password input initial //Password input initial
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-cellFormat-config", "id": "luckysheet-cellFormat-config",
"addclass": "luckysheet-cellFormat-config", "addclass": "luckysheet-cellFormat-config",
"title": local_cellFormat.cellFormatTitle, "title": local_cellFormat.cellFormatTitle,

16
src/controllers/conditionformat.js

@ -1431,7 +1431,7 @@ const conditionformat = {
const conditionformat_Text = locale().conditionformat; const conditionformat_Text = locale().conditionformat;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-singleRange-dialog", "id": "luckysheet-singleRange-dialog",
"addclass": "luckysheet-singleRange-dialog", "addclass": "luckysheet-singleRange-dialog",
"title": conditionformat_Text.selectCell, "title": conditionformat_Text.selectCell,
@ -1461,7 +1461,7 @@ const conditionformat = {
const conditionformat_Text = locale().conditionformat; const conditionformat_Text = locale().conditionformat;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-multiRange-dialog", "id": "luckysheet-multiRange-dialog",
"addclass": "luckysheet-multiRange-dialog", "addclass": "luckysheet-multiRange-dialog",
"title": conditionformat_Text.selectRange, "title": conditionformat_Text.selectRange,
@ -1571,7 +1571,7 @@ const conditionformat = {
const conditionformat_Text = locale().conditionformat; const conditionformat_Text = locale().conditionformat;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-conditionformat-dialog", "id": "luckysheet-conditionformat-dialog",
"addclass": "luckysheet-conditionformat-dialog", "addclass": "luckysheet-conditionformat-dialog",
"title": title, "title": title,
@ -1662,7 +1662,7 @@ const conditionformat = {
</div> </div>
</div>`; </div>`;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-CFicons-dialog", "id": "luckysheet-CFicons-dialog",
"addclass": "luckysheet-CFicons-dialog", "addclass": "luckysheet-CFicons-dialog",
"title": conditionformat_Text.icons, "title": conditionformat_Text.icons,
@ -1724,7 +1724,7 @@ const conditionformat = {
</div> </div>
</div>`; </div>`;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-administerRule-dialog", "id": "luckysheet-administerRule-dialog",
"addclass": "luckysheet-administerRule-dialog", "addclass": "luckysheet-administerRule-dialog",
"title": conditionformat_Text.conditionformatManageRules, "title": conditionformat_Text.conditionformatManageRules,
@ -1990,7 +1990,7 @@ const conditionformat = {
'</div>' + '</div>' +
'</div>'; '</div>';
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-newConditionRule-dialog", "id": "luckysheet-newConditionRule-dialog",
"addclass": "luckysheet-newEditorRule-dialog", "addclass": "luckysheet-newEditorRule-dialog",
"title": conditionformat_Text.newFormatRule, "title": conditionformat_Text.newFormatRule,
@ -2091,7 +2091,7 @@ const conditionformat = {
'</div>' + '</div>' +
'</div>'; '</div>';
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-editorConditionRule-dialog", "id": "luckysheet-editorConditionRule-dialog",
"addclass": "luckysheet-newEditorRule-dialog", "addclass": "luckysheet-newEditorRule-dialog",
"title": conditionformat_Text.editFormatRule, "title": conditionformat_Text.editFormatRule,
@ -2249,7 +2249,7 @@ const conditionformat = {
infoDialog: function(title, content){ infoDialog: function(title, content){
$("#luckysheet-modal-dialog-mask").show(); $("#luckysheet-modal-dialog-mask").show();
$("#luckysheet-conditionformat-info-dialog").remove(); $("#luckysheet-conditionformat-info-dialog").remove();
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-conditionformat-info-dialog", "id": "luckysheet-conditionformat-info-dialog",
"addclass": "", "addclass": "",
"title": title, "title": title,

4
src/controllers/dataVerificationCtrl.js

@ -226,7 +226,7 @@ const dataVerificationCtrl = {
</div> </div>
</div>`; </div>`;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-dataVerification-dialog", "id": "luckysheet-dataVerification-dialog",
"addclass": "luckysheet-dataVerification-dialog", "addclass": "luckysheet-dataVerification-dialog",
"title": toolbarText.dataVerification, "title": toolbarText.dataVerification,
@ -965,7 +965,7 @@ const dataVerificationCtrl = {
$("#luckysheet-modal-dialog-mask").hide(); $("#luckysheet-modal-dialog-mask").hide();
$("#luckysheet-dataVerificationRange-dialog").remove(); $("#luckysheet-dataVerificationRange-dialog").remove();
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-dataVerificationRange-dialog", "id": "luckysheet-dataVerificationRange-dialog",
"addclass": "luckysheet-dataVerificationRange-dialog", "addclass": "luckysheet-dataVerificationRange-dialog",
"title": dvText.selectCellRange, "title": dvText.selectCellRange,

2
src/controllers/dropCell.js

@ -304,7 +304,7 @@ const luckysheetDropCell = {
$("#luckysheet-dropCell-typeList").remove(); $("#luckysheet-dropCell-typeList").remove();
const _locale = locale(); const _locale = locale();
const locale_dropCell = _locale.dropCell; const locale_dropCell = _locale.dropCell;
$("body").append(replaceHtml(_this.typeListHtml,{ $("body").first().append(replaceHtml(_this.typeListHtml,{
copyCell:locale_dropCell.copyCell, copyCell:locale_dropCell.copyCell,
sequence:locale_dropCell.sequence, sequence:locale_dropCell.sequence,
onlyFormat:locale_dropCell.onlyFormat, onlyFormat:locale_dropCell.onlyFormat,

2
src/controllers/filter.js

@ -860,7 +860,7 @@ function initialFilterHandler(){
} }
//颜色筛选子菜单 //颜色筛选子菜单
$("#luckysheet-filter-orderby-color-submenu").remove(); $("#luckysheet-filter-orderby-color-submenu").remove();
$("body").append('<div id="luckysheet-filter-orderby-color-submenu" class="luckysheet-cols-menu luckysheet-mousedown-cancel">'+content+'</div>'); $("body").first().append('<div id="luckysheet-filter-orderby-color-submenu" class="luckysheet-cols-menu luckysheet-mousedown-cancel">'+content+'</div>');
let $t = $("#luckysheet-filter-orderby-color-submenu").end(); let $t = $("#luckysheet-filter-orderby-color-submenu").end();
let $con = $(this).parent(); let $con = $(this).parent();
let winW = $(window).width(), winH = $(window).height(); let winW = $(window).width(), winH = $(window).height();

2
src/controllers/hyperlinkCtrl.js

@ -74,7 +74,7 @@ const hyperlinkCtrl = {
</div> </div>
</div>`; </div>`;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-insertLink-dialog", "id": "luckysheet-insertLink-dialog",
"addclass": "luckysheet-insertLink-dialog", "addclass": "luckysheet-insertLink-dialog",
"title": toolbarText.insertLink, "title": toolbarText.insertLink,

8
src/controllers/ifFormulaGenerator.js

@ -363,7 +363,7 @@ const ifFormulaGenerator = {
'</div>'+ '</div>'+
'<div class="ifList">'+ifListHtml+'</div>'; '<div class="ifList">'+ifListHtml+'</div>';
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-ifFormulaGenerator-dialog", "id": "luckysheet-ifFormulaGenerator-dialog",
"addclass": "luckysheet-ifFormulaGenerator-dialog", "addclass": "luckysheet-ifFormulaGenerator-dialog",
"title": locale_formula.ifGenerate, "title": locale_formula.ifGenerate,
@ -428,7 +428,7 @@ const ifFormulaGenerator = {
value = ""; value = "";
} }
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-ifFormulaGenerator-singleRange-dialog", "id": "luckysheet-ifFormulaGenerator-singleRange-dialog",
"addclass": "luckysheet-ifFormulaGenerator-singleRange-dialog", "addclass": "luckysheet-ifFormulaGenerator-singleRange-dialog",
"title": locale_formula.ifGenTipSelectCell, "title": locale_formula.ifGenTipSelectCell,
@ -452,7 +452,7 @@ const ifFormulaGenerator = {
const locale_formula = _locale.formula; const locale_formula = _locale.formula;
const locale_button = _locale.button; const locale_button = _locale.button;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-ifFormulaGenerator-multiRange-dialog", "id": "luckysheet-ifFormulaGenerator-multiRange-dialog",
"addclass": "luckysheet-ifFormulaGenerator-multiRange-dialog", "addclass": "luckysheet-ifFormulaGenerator-multiRange-dialog",
"title": locale_formula.ifGenTipSelectRange, "title": locale_formula.ifGenTipSelectRange,
@ -541,7 +541,7 @@ const ifFormulaGenerator = {
const _locale = locale(); const _locale = locale();
const locale_button = _locale.button; const locale_button = _locale.button;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-ifFormulaGenerator-info", "id": "luckysheet-ifFormulaGenerator-info",
"addclass": "", "addclass": "",
"title": title, "title": title,

4
src/controllers/imageCtrl.js

@ -208,7 +208,7 @@ const imageCtrl = {
$("#luckysheet-modal-dialog-slider-imageCtrl").remove(); $("#luckysheet-modal-dialog-slider-imageCtrl").remove();
let sliderHtml = _this.getSliderHtml(); let sliderHtml = _this.getSliderHtml();
$("body").append(sliderHtml); $("body").first().append(sliderHtml);
luckysheetsizeauto(); luckysheetsizeauto();
let imgItem = _this.images[_this.currentImgId]; let imgItem = _this.images[_this.currentImgId];
@ -239,7 +239,7 @@ const imageCtrl = {
$("#luckysheet-modal-dialog-mask").show(); $("#luckysheet-modal-dialog-mask").show();
$("#luckysheet-imageCtrl-colorSelect-dialog").remove(); $("#luckysheet-imageCtrl-colorSelect-dialog").remove();
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-imageCtrl-colorSelect-dialog", "id": "luckysheet-imageCtrl-colorSelect-dialog",
"addclass": "luckysheet-imageCtrl-colorSelect-dialog", "addclass": "luckysheet-imageCtrl-colorSelect-dialog",
"title": locale_imageCtrl.borderTile, "title": locale_imageCtrl.borderTile,

8
src/controllers/insertFormula.js

@ -135,7 +135,7 @@ const insertFormula = {
$("#luckysheet-search-formula-parm-select").remove(); $("#luckysheet-search-formula-parm-select").remove();
if($(this).parents(".parmBox").find(".txt input").val() == ""){ if($(this).parents(".parmBox").find(".txt input").val() == ""){
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-search-formula-parm-select", "id": "luckysheet-search-formula-parm-select",
"addclass": "luckysheet-search-formula-parm-select", "addclass": "luckysheet-search-formula-parm-select",
"title": locale_formulaMore.tipSelectDataRange, "title": locale_formulaMore.tipSelectDataRange,
@ -145,7 +145,7 @@ const insertFormula = {
})); }));
} }
else{ else{
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-search-formula-parm-select", "id": "luckysheet-search-formula-parm-select",
"addclass": "luckysheet-search-formula-parm-select", "addclass": "luckysheet-search-formula-parm-select",
"title": locale_formulaMore.tipSelectDataRange, "title": locale_formulaMore.tipSelectDataRange,
@ -190,7 +190,7 @@ const insertFormula = {
$("#luckysheet-modal-dialog-mask").show(); $("#luckysheet-modal-dialog-mask").show();
$("#luckysheet-search-formula").remove(); $("#luckysheet-search-formula").remove();
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-search-formula", "id": "luckysheet-search-formula",
"addclass": "luckysheet-search-formula", "addclass": "luckysheet-search-formula",
"title": "", "title": "",
@ -276,7 +276,7 @@ const insertFormula = {
$("#luckysheet-modal-dialog-mask").hide(); $("#luckysheet-modal-dialog-mask").hide();
$("#luckysheet-search-formula-parm").remove(); $("#luckysheet-search-formula-parm").remove();
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-search-formula-parm", "id": "luckysheet-search-formula-parm",
"addclass": "luckysheet-search-formula-parm", "addclass": "luckysheet-search-formula-parm",
"title": parm_title, "title": parm_title,

2
src/controllers/locationCell.js

@ -90,7 +90,7 @@ const luckysheetLocationCell = {
'</div>'+ '</div>'+
'</div>'; '</div>';
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-locationCell-dialog", "id": "luckysheet-locationCell-dialog",
"addclass": "luckysheet-locationCell-dialog", "addclass": "luckysheet-locationCell-dialog",
"title": locale_location.location, "title": locale_location.location,

38
src/controllers/menuButton.js

@ -465,7 +465,7 @@ const menuButton = {
let submenu = replaceHtml(_this.menu, {"id": "fmtOtherSelf", "item": subitemset, "subclass": "luckysheet-menuButton-sub"}); let submenu = replaceHtml(_this.menu, {"id": "fmtOtherSelf", "item": subitemset, "subclass": "luckysheet-menuButton-sub"});
//luckysheet-icon-fmt-other-menuButton_sub //luckysheet-icon-fmt-other-menuButton_sub
$("body").append(menu+submenu); $("body").first().append(menu+submenu);
$menuButton = $("#" + menuButtonId).width(250); $menuButton = $("#" + menuButtonId).width(250);
_this.focus($menuButton); _this.focus($menuButton);
@ -539,7 +539,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, {"id": "font-family", "item": itemset, "subclass": "", "sub": ""}); let menu = replaceHtml(_this.menu, {"id": "font-family", "item": itemset, "subclass": "", "sub": ""});
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#"+menuButtonId).width(200); $menuButton = $("#"+menuButtonId).width(200);
_this.focus($menuButton); _this.focus($menuButton);
@ -601,7 +601,7 @@ const menuButton = {
let coloritem = replaceHtml(_this.coloritem, {"class": "luckysheet-icon-alternateformat", "name": locale_toolbar.alternatingColors+"..."}); let coloritem = replaceHtml(_this.coloritem, {"class": "luckysheet-icon-alternateformat", "name": locale_toolbar.alternatingColors+"..."});
let menu = replaceHtml(_this.color, {"id":menuButtonId, "coloritem": coloritem, "colorself": subid, "sub": "","resetColor":locale_toolbar.resetColor}); let menu = replaceHtml(_this.color, {"id":menuButtonId, "coloritem": coloritem, "colorself": subid, "sub": "","resetColor":locale_toolbar.resetColor});
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId); $menuButton = $("#" + menuButtonId);
$("#" + menuButtonId).find(".luckysheet-color-selected").spectrum({ $("#" + menuButtonId).find(".luckysheet-color-selected").spectrum({
@ -739,7 +739,7 @@ const menuButton = {
let coloritem = replaceHtml(_this.coloritem, { "class": "luckysheet-icon-alternateformat", "name": locale_toolbar.alternatingColors+"..." }); let coloritem = replaceHtml(_this.coloritem, { "class": "luckysheet-icon-alternateformat", "name": locale_toolbar.alternatingColors+"..." });
let menu = replaceHtml(_this.color, { "id": menuButtonId, "coloritem": coloritem, "colorself": subid, "sub": "","resetColor":locale_toolbar.resetColor }); let menu = replaceHtml(_this.color, { "id": menuButtonId, "coloritem": coloritem, "colorself": subid, "sub": "","resetColor":locale_toolbar.resetColor });
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId); $menuButton = $("#" + menuButtonId);
$("#" + menuButtonId).find(".luckysheet-color-selected").spectrum({ $("#" + menuButtonId).find(".luckysheet-color-selected").spectrum({
@ -903,7 +903,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, { "id": "font-size", "item": itemset, "subclass": "", "sub": "" }); let menu = replaceHtml(_this.menu, { "id": "font-size", "item": itemset, "subclass": "", "sub": "" });
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId).width(150); $menuButton = $("#" + menuButtonId).width(150);
_this.focus($menuButton, 10); _this.focus($menuButton, 10);
@ -1091,7 +1091,7 @@ const menuButton = {
let subcolormenuid = "luckysheet-icon-borderColor-menuButton"; let subcolormenuid = "luckysheet-icon-borderColor-menuButton";
let colormenu = replaceHtml(_this.color, { "id": subcolormenuid, "coloritem": "", "colorself": "", "sub": "luckysheet-menuButton-sub",resetColor:locale_toolbar.resetColor }); let colormenu = replaceHtml(_this.color, { "id": subcolormenuid, "coloritem": "", "colorself": "", "sub": "luckysheet-menuButton-sub",resetColor:locale_toolbar.resetColor });
$("body").append(menu + colormenu + submenu); $("body").first().append(menu + colormenu + submenu);
$menuButton = $("#" + menuButtonId).width(170); $menuButton = $("#" + menuButtonId).width(170);
_this.focus($menuButton, "border-all"); _this.focus($menuButton, "border-all");
@ -1337,7 +1337,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, { "id": "merge-menu", "item": itemset, "subclass": "", "sub": "" }); let menu = replaceHtml(_this.menu, { "id": "merge-menu", "item": itemset, "subclass": "", "sub": "" });
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#"+menuButtonId); $menuButton = $("#"+menuButtonId);
_this.focus($menuButton); _this.focus($menuButton);
@ -1431,7 +1431,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, { "id": "align-menu", "item": itemset, "subclass": "", "sub": "" }); let menu = replaceHtml(_this.menu, { "id": "align-menu", "item": itemset, "subclass": "", "sub": "" });
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId).width(120); $menuButton = $("#" + menuButtonId).width(120);
_this.focus($menuButton); _this.focus($menuButton);
@ -1492,7 +1492,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, { "id": "valign-menu", "item": itemset, "subclass": "", "sub": "" }); let menu = replaceHtml(_this.menu, { "id": "valign-menu", "item": itemset, "subclass": "", "sub": "" });
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId).width(120); $menuButton = $("#" + menuButtonId).width(120);
_this.focus($menuButton, "bottom"); _this.focus($menuButton, "bottom");
@ -1544,7 +1544,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, { "id": "textwrap-menu", "item": itemset, "subclass": "", "sub": "" }); let menu = replaceHtml(_this.menu, { "id": "textwrap-menu", "item": itemset, "subclass": "", "sub": "" });
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId).width(120); $menuButton = $("#" + menuButtonId).width(120);
_this.focus($menuButton, "clip"); _this.focus($menuButton, "clip");
@ -1599,7 +1599,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, { "id": "rotation-menu", "item": itemset, "subclass": "", "sub": "" }); let menu = replaceHtml(_this.menu, { "id": "rotation-menu", "item": itemset, "subclass": "", "sub": "" });
$("body").append(menu); $("body").first().append(menu);
// 文字旋转总 Stack Vertically 太长了,拉宽到160 // 文字旋转总 Stack Vertically 太长了,拉宽到160
$menuButton = $("#" + menuButtonId).width(160); $menuButton = $("#" + menuButtonId).width(160);
@ -1656,7 +1656,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, { "id": "freezen-menu", "item": itemset, "subclass": "", "sub": "" }); let menu = replaceHtml(_this.menu, { "id": "freezen-menu", "item": itemset, "subclass": "", "sub": "" });
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId).width(170); $menuButton = $("#" + menuButtonId).width(170);
$menuButton.find(".luckysheet-cols-menuitem").click(function(){ $menuButton.find(".luckysheet-cols-menuitem").click(function(){
@ -1980,7 +1980,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, {"id":"autofilter", "item": itemset, "subclass":"", "sub":""}); let menu = replaceHtml(_this.menu, {"id":"autofilter", "item": itemset, "subclass":"", "sub":""});
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId).width(150); $menuButton = $("#" + menuButtonId).width(150);
$menuButton.find(".luckysheet-cols-menuitem").click(function(){ $menuButton.find(".luckysheet-cols-menuitem").click(function(){
@ -2049,7 +2049,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, { "id": "seachmore", "item": itemset, "subclass": "", "sub": "" }); let menu = replaceHtml(_this.menu, { "id": "seachmore", "item": itemset, "subclass": "", "sub": "" });
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId).width(180); $menuButton = $("#" + menuButtonId).width(180);
$menuButton.find(".luckysheet-cols-menuitem").click(function(){ $menuButton.find(".luckysheet-cols-menuitem").click(function(){
@ -2177,7 +2177,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, { "id": "function-menu", "item": itemset, "subclass": "", "sub": "" }); let menu = replaceHtml(_this.menu, { "id": "function-menu", "item": itemset, "subclass": "", "sub": "" });
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId).width(180); $menuButton = $("#" + menuButtonId).width(180);
$menuButton.find(".luckysheet-cols-menuitem").click(function(){ $menuButton.find(".luckysheet-cols-menuitem").click(function(){
@ -2454,7 +2454,7 @@ const menuButton = {
let subitemset6 = _this.createButtonMenu(subitemdata6); let subitemset6 = _this.createButtonMenu(subitemdata6);
let submenu6 = replaceHtml(_this.menu, {"id": "deleteRule", "item": subitemset6, "subclass":"luckysheet-menuButton-sub"}); let submenu6 = replaceHtml(_this.menu, {"id": "deleteRule", "item": subitemset6, "subclass":"luckysheet-menuButton-sub"});
$("body").append(menu + submenu + submenu2 + submenu3 + submenu4 + submenu6); $("body").first().append(menu + submenu + submenu2 + submenu3 + submenu4 + submenu6);
$menuButton = $("#" + menuButtonId).width(190); $menuButton = $("#" + menuButtonId).width(190);
$("#luckysheet-icon-highlightCellRule-menuButton").width(160); $("#luckysheet-icon-highlightCellRule-menuButton").width(160);
$("#luckysheet-icon-projectSelectRule-menuButton").width(180); $("#luckysheet-icon-projectSelectRule-menuButton").width(180);
@ -2859,7 +2859,7 @@ const menuButton = {
let itemset = _this.createButtonMenu(itemdata); let itemset = _this.createButtonMenu(itemdata);
let menu = replaceHtml(_this.menu, {"id": "postil", "item": itemset, "subclass": "", "sub": ""}); let menu = replaceHtml(_this.menu, {"id": "postil", "item": itemset, "subclass": "", "sub": ""});
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#"+menuButtonId).width(150); $menuButton = $("#"+menuButtonId).width(150);
$menuButton.find(".luckysheet-cols-menuitem").click(function(){ $menuButton.find(".luckysheet-cols-menuitem").click(function(){
@ -2921,7 +2921,7 @@ const menuButton = {
let menu = replaceHtml(_this.menu, { "id": "print", "item": itemset, "subclass": "", "sub": "" }); let menu = replaceHtml(_this.menu, { "id": "print", "item": itemset, "subclass": "", "sub": "" });
$("body").append(menu); $("body").first().append(menu);
$menuButton = $("#" + menuButtonId).width(180); $menuButton = $("#" + menuButtonId).width(180);
$menuButton.find(".luckysheet-cols-menuitem").click(function(){ $menuButton.find(".luckysheet-cols-menuitem").click(function(){
@ -2949,7 +2949,7 @@ const menuButton = {
mouseclickposition($menuButton, menuleft, $(this).offset().top + 25, "lefttop"); mouseclickposition($menuButton, menuleft, $(this).offset().top + 25, "lefttop");
}); });
$("body").on("mouseover mouseleave",".luckysheet-menuButton .luckysheet-cols-submenu", function(e){ $("body").first().on("mouseover mouseleave",".luckysheet-menuButton .luckysheet-cols-submenu", function(e){
let $t = $(this), attrid = $t.attr("itemvalue"), let $t = $(this), attrid = $t.attr("itemvalue"),
$attr = $("#luckysheet-icon-" + attrid + "-menuButton"); $attr = $("#luckysheet-icon-" + attrid + "-menuButton");

2
src/controllers/moreFormat.js

@ -1127,7 +1127,7 @@ const luckysheetMoreFormat = {
'</div>'; '</div>';
} }
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-moreFormat-dialog", "id": "luckysheet-moreFormat-dialog",
"addclass": "luckysheet-moreFormat-dialog", "addclass": "luckysheet-moreFormat-dialog",
"title": title, "title": title,

2
src/controllers/orderBy.js

@ -66,7 +66,7 @@ export function orderByInitial(){
let content = `<div style="overflow: hidden;" class="luckysheet-sort-modal"><div><label><input type="checkbox" id="luckysheet-sort-haveheader"/><span>${locale_sort.hasTitle}</span></label></div><div style="overflow-y:auto;" id="luckysheet-sort-dialog-tablec"><table data-itemcount="0" cellspacing="0"> <tr><td>${locale_sort.hasTitle} <select name="sort_0"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> </td> <td> <div><label><input value="asc" type="radio" checked="checked" name="sort_0"><span>${locale_sort.asc}A-Z</span></label></div> <div><label><input value="desc" type="radio" name="sort_0"><span>${locale_sort.desc}Z-A</span></label></div></td></tr></table></div><div style="background: #e5e5e5;border-top: 1px solid #f5f5f5; height: 1px; width: 100%;margin:2px 0px;margin-bottom:10px;"></div> <div> <span style="font-weight: bold; text-decoration: underline;text-align:center;color: blue;cursor: pointer;" class="luckysheet-sort-dialog-additem">+ ${locale_sort.addOthers}</span> </div> </div>`; let content = `<div style="overflow: hidden;" class="luckysheet-sort-modal"><div><label><input type="checkbox" id="luckysheet-sort-haveheader"/><span>${locale_sort.hasTitle}</span></label></div><div style="overflow-y:auto;" id="luckysheet-sort-dialog-tablec"><table data-itemcount="0" cellspacing="0"> <tr><td>${locale_sort.hasTitle} <select name="sort_0"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> </td> <td> <div><label><input value="asc" type="radio" checked="checked" name="sort_0"><span>${locale_sort.asc}A-Z</span></label></div> <div><label><input value="desc" type="radio" name="sort_0"><span>${locale_sort.desc}Z-A</span></label></div></td></tr></table></div><div style="background: #e5e5e5;border-top: 1px solid #f5f5f5; height: 1px; width: 100%;margin:2px 0px;margin-bottom:10px;"></div> <div> <span style="font-weight: bold; text-decoration: underline;text-align:center;color: blue;cursor: pointer;" class="luckysheet-sort-dialog-additem">+ ${locale_sort.addOthers}</span> </div> </div>`;
$("body").append(replaceHtml(modelHTML, { "id": "luckysheet-sort-dialog", "addclass": "", "title": _locale.sort.sortTitle, "content": content, "botton": `<button id="luckysheet-sort-modal-confirm" class="btn btn-primary">${locale_sort.confirm}</button><button class="btn btn-default luckysheet-model-close-btn">${locale_sort.close}</button>`})); $("body").first().append(replaceHtml(modelHTML, { "id": "luckysheet-sort-dialog", "addclass": "", "title": _locale.sort.sortTitle, "content": content, "botton": `<button id="luckysheet-sort-modal-confirm" class="btn btn-primary">${locale_sort.confirm}</button><button class="btn btn-default luckysheet-model-close-btn">${locale_sort.close}</button>`}));
$("#luckysheet-sort-dialog .luckysheet-sort-dialog-additem").click(function () { $("#luckysheet-sort-dialog .luckysheet-sort-dialog-additem").click(function () {
let last = Store.luckysheet_select_save[0]; let last = Store.luckysheet_select_save[0];

14
src/controllers/pivotTable.js

@ -916,18 +916,18 @@ const pivotTable = {
$("body").append(luckysheetPivotTableHTML()); $("body").first().append(luckysheetPivotTableHTML());
$("#luckysheet-modal-dialog-slider-close").click(function () { $("#luckysheet-modal-dialog-slider-close").click(function () {
$("#luckysheet-modal-dialog-slider-pivot").hide(); $("#luckysheet-modal-dialog-slider-pivot").hide();
luckysheetsizeauto(); luckysheetsizeauto();
}); });
$("body").append(replaceHtml(modelHTML, { "id": "luckysheet-data-pivotTable-selection", "addclass": "luckysheet-data-pivotTable-selection", "title": locale_pivotTable.titleSelectionDataRange, "content": '<input id="luckysheet-pivotTable-range-selection-input" class="luckysheet-datavisual-range-container" style="font-size: 14px;padding:5px;max-width:none;" spellcheck="false" aria-label="'+locale_pivotTable.titleDataRange+'" placeholder="'+locale_pivotTable.titleDataRange+'">', "botton": '<button id="luckysheet-pivotTable-selection-confirm" class="btn btn-primary">'+locale_button.confirm+'</button><button class="btn btn-default luckysheet-model-close-btn">'+locale_button.cancel+'</button>' })); $("body").first().append(replaceHtml(modelHTML, { "id": "luckysheet-data-pivotTable-selection", "addclass": "luckysheet-data-pivotTable-selection", "title": locale_pivotTable.titleSelectionDataRange, "content": '<input id="luckysheet-pivotTable-range-selection-input" class="luckysheet-datavisual-range-container" style="font-size: 14px;padding:5px;max-width:none;" spellcheck="false" aria-label="'+locale_pivotTable.titleDataRange+'" placeholder="'+locale_pivotTable.titleDataRange+'">', "botton": '<button id="luckysheet-pivotTable-selection-confirm" class="btn btn-primary">'+locale_button.confirm+'</button><button class="btn btn-default luckysheet-model-close-btn">'+locale_button.cancel+'</button>' }));
$("body").append(replaceHtml(filtermenuHTML(), { "menuid": "pivotTableFilter" })); $("body").first().append(replaceHtml(filtermenuHTML(), { "menuid": "pivotTableFilter" }));
$("body").append(replaceHtml(filtersubmenuHTML(), { "menuid": "pivotTableFilter" })); $("body").first().append(replaceHtml(filtersubmenuHTML(), { "menuid": "pivotTableFilter" }));
$("body").append(pivottableconfigHTML()); $("body").first().append(pivottableconfigHTML());
$("body").append(pivottablesumHTML()); $("body").first().append(pivottablesumHTML());
$("#luckysheet-pivotTableFilter-orderby-asc").remove(); $("#luckysheet-pivotTableFilter-orderby-asc").remove();
$("#luckysheet-pivotTableFilter-orderby-desc").next().remove(); $("#luckysheet-pivotTableFilter-orderby-desc").next().remove();
@ -1940,7 +1940,7 @@ const pivotTable = {
_this.movesave.index = $cur.data("index"); _this.movesave.index = $cur.data("index");
if ($("#luckysheet-modal-dialog-slider-pivot-move").length == 0) { if ($("#luckysheet-modal-dialog-slider-pivot-move").length == 0) {
$("body").append('<div id="luckysheet-modal-dialog-slider-pivot-move">' + _this.movesave.name + '</div>'); $("body").first().append('<div id="luckysheet-modal-dialog-slider-pivot-move">' + _this.movesave.name + '</div>');
} }
_this.movesave.width = $("#luckysheet-modal-dialog-slider-pivot-move").outerWidth(); _this.movesave.width = $("#luckysheet-modal-dialog-slider-pivot-move").outerWidth();

8
src/controllers/protection.js

@ -469,7 +469,7 @@ function initialProtectionRangeModal(file){
let _locale = locale(); let _locale = locale();
let local_protection = _locale.protection; let local_protection = _locale.protection;
const locale_button = _locale.button; const locale_button = _locale.button;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-protection-rangeItem-dialog", "id": "luckysheet-protection-rangeItem-dialog",
"addclass": "luckysheet-protection-rangeItem-dialog", "addclass": "luckysheet-protection-rangeItem-dialog",
"title": local_protection.allowRangeTitle, "title": local_protection.allowRangeTitle,
@ -597,11 +597,11 @@ function initialProtectionRIghtBar(file){
</div> </div>
`; `;
$("body").append(protectionModalHtml); $("body").first().append(protectionModalHtml);
//Password input initial for sheet Protection //Password input initial for sheet Protection
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-protection-sheet-validation", "id": "luckysheet-protection-sheet-validation",
"addclass": "luckysheet-protection-sheet-validation", "addclass": "luckysheet-protection-sheet-validation",
"title": local_protection.validationTitle, "title": local_protection.validationTitle,
@ -787,7 +787,7 @@ function openRangePasswordModal(rangeAut) {
if(!initialRangePasswordHtml){ if(!initialRangePasswordHtml){
//Password input initial for range //Password input initial for range
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-protection-range-validation", "id": "luckysheet-protection-range-validation",
"addclass": "luckysheet-protection-sheet-validation", "addclass": "luckysheet-protection-sheet-validation",
"title": local_protection.validationTitle, "title": local_protection.validationTitle,

6
src/controllers/resize.js

@ -103,10 +103,10 @@ export default function luckysheetsizeauto(isRefreshCanvas=true) {
</div> </div>
</div>`, </div>`,
// Add style left:$$('.luckysheet') left, when the worksheet does not fill the full screen // Add style left:$$('.luckysheet') left, when the worksheet does not fill the full screen
morediv = '<div id="luckysheet-icon-morebtn-div" class="luckysheet-wa-editor" style="position:absolute;top:'+ (Store.infobarHeight + Store.toolbarHeight + $("#" + Store.container).offset().top + $("body").scrollTop()) +'px;right:0px;z-index:1003;padding:5.5px;visibility:hidden;height:auto;white-space:initial;"></div>'; morediv = '<div id="luckysheet-icon-morebtn-div" class="luckysheet-wa-editor" style="position:absolute;top:'+ (Store.infobarHeight + Store.toolbarHeight + $("#" + Store.container).offset().top + $("body").first().scrollTop()) +'px;right:0px;z-index:1003;padding:5.5px;visibility:hidden;height:auto;white-space:initial;"></div>';
if($("#luckysheet-icon-morebtn-div").length == 0){ if($("#luckysheet-icon-morebtn-div").length == 0){
$("body").append(morediv); $("body").first().append(morediv);
} }
// $("#luckysheet-icon-morebtn-div").hide(); // $("#luckysheet-icon-morebtn-div").hide();
@ -175,7 +175,7 @@ export default function luckysheetsizeauto(isRefreshCanvas=true) {
$$('#luckysheet-icon-morebtn-div').style.left = containerLeft + 'px'; $$('#luckysheet-icon-morebtn-div').style.left = containerLeft + 'px';
} }
let right = $(window).width() - $("#luckysheet-icon-morebtn").offset().left - $("#luckysheet-icon-morebtn").width()+ $("body").scrollLeft(); let right = $(window).width() - $("#luckysheet-icon-morebtn").offset().left - $("#luckysheet-icon-morebtn").width()+ $("body").first().scrollLeft();
// $("#luckysheet-icon-morebtn-div").toggle().css("right", right < 0 ? 0 : right); // $("#luckysheet-icon-morebtn-div").toggle().css("right", right < 0 ? 0 : right);

2
src/controllers/searchReplace.js

@ -56,7 +56,7 @@ const luckysheetSearchReplace = {
'</div>' + '</div>' +
'</div>'; '</div>';
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-search-replace", "id": "luckysheet-search-replace",
"addclass": "luckysheet-search-replace", "addclass": "luckysheet-search-replace",
"title": "", "title": "",

2
src/controllers/splitColumn.js

@ -57,7 +57,7 @@ const luckysheetSplitColumn = {
'</div>' + '</div>' +
'</div>'; '</div>';
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-splitColumn-dialog", "id": "luckysheet-splitColumn-dialog",
"addclass": "luckysheet-splitColumn-dialog", "addclass": "luckysheet-splitColumn-dialog",
"title": locale_splitText.splitTextTitle, "title": locale_splitText.splitTextTitle,

14
src/global/createdom.js

@ -104,13 +104,13 @@ export default function luckysheetcreatedom(colwidth, rowheight, data, menu, tit
$("#luckysheet-scrollbar-y div").height(Store.rh_height + Store.columnHeaderHeight - Store.cellMainSrollBarSize - 3); $("#luckysheet-scrollbar-y div").height(Store.rh_height + Store.columnHeaderHeight - Store.cellMainSrollBarSize - 3);
//新建行菜单 //新建行菜单
$("body").append(maskHTML); $("body").first().append(maskHTML);
$("body").append(colsmenuHTML); $("body").first().append(colsmenuHTML);
$("body").append(rightclickHTML()); $("body").first().append(rightclickHTML());
$("body").append(inputHTML); $("body").first().append(inputHTML);
$("body").append(replaceHtml(filtermenuHTML(), { "menuid": "filter" })); $("body").first().append(replaceHtml(filtermenuHTML(), { "menuid": "filter" }));
$("body").append(replaceHtml(filtersubmenuHTML(), { "menuid": "filter" })); $("body").first().append(replaceHtml(filtersubmenuHTML(), { "menuid": "filter" }));
$("body").append(sheetconfigHTML()); $("body").first().append(sheetconfigHTML());
$("#luckysheet-rows-h").width((Store.rowHeaderWidth-1.5)); $("#luckysheet-rows-h").width((Store.rowHeaderWidth-1.5));
$("#luckysheet-cols-h-c").height((Store.columnHeaderHeight-1.5)); $("#luckysheet-cols-h-c").height((Store.columnHeaderHeight-1.5));

4
src/global/formula.js

@ -992,7 +992,7 @@ const luckysheetformula = {
let _this = this; let _this = this;
if ($("#luckysheet-formula-search-c").length == 0) { if ($("#luckysheet-formula-search-c").length == 0) {
$("body").append(_this.searchHTML); $("body").first().append(_this.searchHTML);
$("#luckysheet-formula-search-c").on("mouseover", ".luckysheet-formula-search-item", function () { $("#luckysheet-formula-search-c").on("mouseover", ".luckysheet-formula-search-item", function () {
$("#luckysheet-formula-search-c").find(".luckysheet-formula-search-item").removeClass("luckysheet-formula-search-item-active"); $("#luckysheet-formula-search-c").find(".luckysheet-formula-search-item").removeClass("luckysheet-formula-search-item-active");
$(this).addClass("luckysheet-formula-search-item-active"); $(this).addClass("luckysheet-formula-search-item-active");
@ -1114,7 +1114,7 @@ const luckysheetformula = {
let _locale = locale(); let _locale = locale();
let locale_formulaMore = _locale.formulaMore; let locale_formulaMore = _locale.formulaMore;
if ($("#luckysheet-formula-help-c").length == 0) { if ($("#luckysheet-formula-help-c").length == 0) {
$("body").after(replaceHtml(_this.helpHTML, { $("body").first().after(replaceHtml(_this.helpHTML, {
helpClose: locale_formulaMore.helpClose, helpClose: locale_formulaMore.helpClose,
helpCollapse: locale_formulaMore.helpCollapse, helpCollapse: locale_formulaMore.helpCollapse,
helpExample: locale_formulaMore.helpExample, helpExample: locale_formulaMore.helpExample,

12
src/global/tooltip.js

@ -12,7 +12,7 @@ const tooltip = {
let _locale = locale(); let _locale = locale();
let locale_button = _locale.button; let locale_button = _locale.button;
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-info", "id": "luckysheet-info",
"addclass": "", "addclass": "",
"title": title, "title": title,
@ -41,7 +41,7 @@ const tooltip = {
name2 = locale_button.cancel; name2 = locale_button.cancel;
} }
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-confirm", "id": "luckysheet-confirm",
"addclass": "", "addclass": "",
"style": "z-index:100003", "style": "z-index:100003",
@ -77,7 +77,7 @@ const tooltip = {
const locale_screenshot = _locale.screenshot; const locale_screenshot = _locale.screenshot;
$("#luckysheet-modal-dialog-mask").show(); $("#luckysheet-modal-dialog-mask").show();
$("#luckysheet-confirm").remove(); $("#luckysheet-confirm").remove();
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": "luckysheet-confirm", "id": "luckysheet-confirm",
"addclass": "", "addclass": "",
"style": "z-index:100003", "style": "z-index:100003",
@ -128,7 +128,7 @@ const tooltip = {
}); });
}, },
chartPointConfig: function (id, savefunc1, closefunc2) { chartPointConfig: function (id, savefunc1, closefunc2) {
$("body").append(replaceHtml(modelHTML, { $("body").first().append(replaceHtml(modelHTML, {
"id": id, "id": id,
"addclass": "luckysheet-chart-point-config-c", "addclass": "luckysheet-chart-point-config-c",
"title": "数据点批量设置", "title": "数据点批量设置",
@ -191,7 +191,7 @@ const tooltip = {
} }
if ($toolup.length == 0) { if ($toolup.length == 0) {
$("body").append(luckysheetToolHTML); $("body").first().append(luckysheetToolHTML);
$toolup = $("#luckysheet-tooltip-up"); $toolup = $("#luckysheet-tooltip-up");
} }
@ -229,7 +229,7 @@ const tooltip = {
let htmldiv = '<div id="luckysheetpopover" class="luckysheetpopover"><div class="luckysheetpopover-content">'+locale_paint.start+'</div><div class="luckysheetpopover-btn">'+ btntxt +'</div></div>'; let htmldiv = '<div id="luckysheetpopover" class="luckysheetpopover"><div class="luckysheetpopover-content">'+locale_paint.start+'</div><div class="luckysheetpopover-btn">'+ btntxt +'</div></div>';
$("#luckysheetpopover").remove(); $("#luckysheetpopover").remove();
$("body").append(htmldiv); $("body").first().append(htmldiv);
$("#luckysheetpopover .luckysheetpopover-content").html(content); $("#luckysheetpopover .luckysheetpopover-content").html(content);
let w = $("#luckysheetpopover").outerWidth(), let w = $("#luckysheetpopover").outerWidth(),

Loading…
Cancel
Save