Merge pull request 'Added clear button for XPath, XSD and XSLT' (#67) from widlam/feature/issue#38 into dev

Reviewed-on: R11/release11-tools-web#67
This commit is contained in:
2023-02-23 11:04:22 +01:00
4 changed files with 21 additions and 4 deletions

View File

@@ -11,6 +11,11 @@ function clearDefaultContent(element, text) {
}
}
function clearDataField(){
document.getElementById("xmlArea").value = "";
document.getElementById("transformArea").value = "";
}
function fillDefaultXML(element) {
if(element.classList.contains("active")){
const serverAddress = window.location.protocol + "//" + window.location.hostname + ":8086";

View File

@@ -36,8 +36,12 @@
<option class="hideable saxon" value="3.1">3.1</option>
</select>
</div>
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
onclick="fillDefaultXML(this)">Insert default XML</button>
<div>
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
onclick="clearDataField()">Clear</button>
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
onclick="fillDefaultXML(this)">Insert default XML</button>
</div>
</div>
<!-- <br><br> -->
<label for="xmlArea"><b>Insert your XML:</b></label>

View File

@@ -25,8 +25,12 @@
<option value="libxml">libXML</option>
</select>
</div>
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px; float: right;"
<div>
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
onclick="clearDataField()">Clear</button>
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
onclick="fillDefaultXML(this)">Insert default XML</button>
</div>
</div>
<!-- <span id="processorTooltipInfo">procInfo</span><br> -->

View File

@@ -25,8 +25,12 @@
<option value="libxml">libXML</option>
</select>
</div>
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px; float: right;"
<div>
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
onclick="clearDataField()">Clear</button>
<button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
onclick="fillDefaultXML(this)">Insert default XML</button>
</div>
</div>
<span id="processorTooltipInfo">procInfo</span><br>