mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2026-09-18 07:42:13 -04:00
DEV: Remove Table HTML usage (#9)
* DEV: Remove Table HTML usage * DEV: Apply ember linting
This commit is contained in:
@@ -33,8 +33,6 @@ export default apiInitializer("0.11.1", (api) => {
|
||||
}
|
||||
|
||||
function generateModal(event) {
|
||||
const table = event.target.parentNode.lastElementChild;
|
||||
const tempTable = table.cloneNode(true);
|
||||
const tableId = event.target.getAttribute("data-table-id");
|
||||
|
||||
return ajax(`/posts/${this.id}`, { type: "GET" })
|
||||
@@ -53,7 +51,6 @@ export default apiInitializer("0.11.1", (api) => {
|
||||
showModal("insert-table-modal", {
|
||||
model: post,
|
||||
}).setProperties({
|
||||
tableHtml: tempTable,
|
||||
tableId,
|
||||
tableTokens,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user