added id to textarea

This commit is contained in:
sanjayk03-dev
2024-01-28 14:19:06 +05:30
parent c9f4e99573
commit fcfe972938
3 changed files with 10 additions and 11 deletions

View File

@@ -224,7 +224,7 @@ module.exports = {
const defaultValue = this.config.macros[this.tab - 1]; const defaultValue = this.config.macros[this.tab - 1];
document.getElementById(`macros-name-${this.tab - 1}`).value = defaultValue.name; document.getElementById(`macros-name-${this.tab - 1}`).value = defaultValue.name;
document.getElementById(`macros-color-${this.tab - 1}`).value = defaultValue.color; document.getElementById(`macros-color-${this.tab - 1}`).value = defaultValue.color;
document.getElementsByClassName("new-gcode").value = ""; document.getElementById("gcode-field").value = "";
this.$set("newGcode[this.tab - 1]", ""); this.$set("newGcode[this.tab - 1]", "");
this.$set("selectedValues[this.tab - 1]", "default"); this.$set("selectedValues[this.tab - 1]", "default");
}, },

View File

@@ -83,7 +83,7 @@ script#macros-template(type="text/x-template")
.fa.fa-trash .fa.fa-trash
br br
.gcodeContainer .gcodeContainer
textarea.new-gcode( :value='newGcode[tab-1]' @input="updateNewGcode") textarea.new-gcode(id="gcode-field", :value='newGcode[tab-1]' @input="updateNewGcode")
section#content2.tab-content section#content2.tab-content
.macros-form .macros-form
@@ -111,7 +111,7 @@ script#macros-template(type="text/x-template")
.fa.fa-trash .fa.fa-trash
br br
.gcodeContainer .gcodeContainer
textarea.new-gcode( :value='newGcode[tab-1]' @input="updateNewGcode") textarea.new-gcode(id="gcode-field", :value='newGcode[tab-1]' @input="updateNewGcode")
section#content3.tab-content section#content3.tab-content
.macros-form .macros-form
@@ -139,7 +139,7 @@ script#macros-template(type="text/x-template")
.fa.fa-trash .fa.fa-trash
br br
.gcodeContainer .gcodeContainer
textarea.new-gcode( :value='newGcode[tab-1]' @input="updateNewGcode") textarea.new-gcode(id="gcode-field", :value='newGcode[tab-1]' @input="updateNewGcode")
section#content4.tab-content section#content4.tab-content
.macros-form .macros-form
@@ -167,7 +167,7 @@ script#macros-template(type="text/x-template")
.fa.fa-trash .fa.fa-trash
br br
.gcodeContainer .gcodeContainer
textarea.new-gcode( :value='newGcode[tab-1]' @input="updateNewGcode") textarea.new-gcode(id="gcode-field", :value='newGcode[tab-1]' @input="updateNewGcode")
section#content5.tab-content section#content5.tab-content
.macros-form .macros-form
@@ -195,7 +195,7 @@ script#macros-template(type="text/x-template")
.fa.fa-trash .fa.fa-trash
br br
.gcodeContainer .gcodeContainer
textarea.new-gcode( :value='newGcode[tab-1]' @input="updateNewGcode") textarea.new-gcode(id="gcode-field", :value='newGcode[tab-1]' @input="updateNewGcode")
section#content6.tab-content section#content6.tab-content
.macros-form .macros-form
@@ -223,7 +223,7 @@ script#macros-template(type="text/x-template")
.fa.fa-trash .fa.fa-trash
br br
.gcodeContainer .gcodeContainer
textarea.new-gcode( :value='newGcode[tab-1]' @input="updateNewGcode") textarea.new-gcode(id="gcode-field", :value='newGcode[tab-1]' @input="updateNewGcode")
section#content7.tab-content section#content7.tab-content
.macros-form .macros-form
@@ -251,7 +251,7 @@ script#macros-template(type="text/x-template")
.fa.fa-trash .fa.fa-trash
br br
.gcodeContainer .gcodeContainer
textarea.new-gcode( :value='newGcode[tab-1]' @input="updateNewGcode") textarea.new-gcode(id="gcode-field", :value='newGcode[tab-1]' @input="updateNewGcode")
section#content8.tab-content section#content8.tab-content
.macros-form .macros-form
@@ -279,9 +279,9 @@ script#macros-template(type="text/x-template")
.fa.fa-trash .fa.fa-trash
br br
.gcodeContainer .gcodeContainer
textarea.new-gcode( :value='newGcode[tab-1]' @input="updateNewGcode") textarea.new-gcode( id="gcode-field",:value='newGcode[tab-1]' @input="updateNewGcode")
button.submit-macros.button-success(title="Save Macros",@click="confirmSave=true",:disabled="!edited") Save button.submit-macros.button-secondary(title="Save Macros",@click="confirmSave=true",:disabled="!edited") Save
button.submit-macros(title="Cancel Macros",@click="cancelMacros",style="margin-left:5px") Cancel button.submit-macros(title="Cancel Macros",@click="cancelMacros",style="margin-left:5px") Cancel
button.submit-macros(title="Cancel Macros",@click="printState",style="margin-left:5px") Print State button.submit-macros(title="Cancel Macros",@click="printState",style="margin-left:5px") Print State

View File

@@ -693,7 +693,6 @@ span.unit
width 140px width 140px
margin-top 30px margin-top 30px
font-weight normal font-weight normal
color #fff
border 0 border 0