Skip to content

Commit

Permalink
Quick Button Update
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Dec 6, 2022
1 parent e03dd0c commit d293adb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions portal/static/js/pages/credit-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ class NodeContainer {
// Create the interactive elements
this.nodeContainer = createNode({tagName: "div", ...containerOptions})

this.removeNodeButton = createNode({tagName: "button", innerText: "-", ...buttonOptions})
this.removeNodeButton = createNode({tagName: "button", innerText: "-", type: "button", ...buttonOptions})
this.removeNodeButton.addEventListener("click", this.removeNode.bind(this))
this.removeNodeButtonContainer = createNode({tagName: "div", children: [this.removeNodeButton], className: "col-6"})

this.addNodeButton = createNode({tagName: "button", innerText: "+", ...buttonOptions})
this.addNodeButton = createNode({tagName: "button", innerText: "+", type: "button", ...buttonOptions})
this.addNodeButton.addEventListener("click", this.addNode.bind(this))
this.addNodeButtonContainer = createNode({tagName: "div", children: [this.addNodeButton], className: "col-6"})

Expand Down Expand Up @@ -445,7 +445,7 @@ class CreditRequestPage{
id: "ensembles",
constructor: Ensemble,
nodeOptions: { updateFunction: this.updateCreditCost.bind(this) },
buttonOptions: { className: "border border-3 form-control"}
buttonOptions: { type: "button", className: "border border-3 form-control"}
})

this.creditTotalNode = document.getElementById("credit-total")
Expand Down

0 comments on commit d293adb

Please sign in to comment.