diff --git a/src/index.js b/src/index.js
index e3f6ba4..e67354b 100644
--- a/src/index.js
+++ b/src/index.js
@@ -190,7 +190,7 @@ ipcMain.on("save", (event, data, new_file) => {
.append($("
")
.attr("id", sanitizeName(table["name"])+"-table")
.addClass("table table-hover"))
- .html();
+ .prop("outerHTML");
nav += $("")
.addClass("nav-item")
.append($("")
@@ -202,7 +202,7 @@ ipcMain.on("save", (event, data, new_file) => {
.attr("aria-controls", sanitizeName(table["name"]))
.attr("aria-selected", false)
.html(table["name"]))
- .html();
+ .prop("outerHTML");
added_tables.push(table["name"]);
} else {
@@ -219,7 +219,7 @@ ipcMain.on("save", (event, data, new_file) => {
let div = $("")
.addClass("dropdown-menu")
.attr("x-placement", "bottom-start")
- .css({"position": "absolute", "will-change": "transform", "top": "0", "left": "0", "transform": "translate3d(0px, 39px, 0px)"});
+ .css({"position": "absolute", "will-change": "transform", "top": 0, "left": 0, "transform": "translate3d(0px, 39px, 0px)"});
for (let tab_table of table_tabs[tab_name]) {
tabs += $("")
.addClass("tab-pane fade")
@@ -240,19 +240,19 @@ ipcMain.on("save", (event, data, new_file) => {
.append($("")
.attr("id", sanitizeName(tab_table["name"])+"-table")
.addClass("table table-hover"))
- .html();
- div.append("")
+ .prop("outerHTML");
+ div.append($("")
.addClass("dropdown-item")
.attr("data-toggle", "tab")
.attr("href", "#"+sanitizeName(tab_table["name"]))
.attr("aria-expanded", true)
- .html(tab_table["name"]);
+ .html(tab_table["name"]));
added_tables.push(tab_table["name"]);
}
let li = $("")
.addClass("nav-item dropdown");
- li.append(a);
- li.append(div);
+ li.append(a.prop("outerHTML"));
+ li.append(div.prop("outerHTML"));
nav += li.prop('outerHTML');
}
}