mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-05-18 12:14:38 +02:00
Fixed iOS SubmitEvent submitter value
Related bug: https://bugs.webkit.org/show_bug.cgi?id=229660
This commit is contained in:
parent
a67e883e61
commit
8dc6914f4b
|
@ -233,7 +233,7 @@ function initDraw() {
|
||||||
objectInfoForm.addEventListener('submit', function(e) {
|
objectInfoForm.addEventListener('submit', function(e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
// Allows for html form validation with preview button
|
// Allows for html form validation with preview button
|
||||||
if (e.submitter.value == "preview") {
|
if (e.submitter && e.submitter.value == "Preview") {
|
||||||
preview()
|
preview()
|
||||||
} else {
|
} else {
|
||||||
exportJson()
|
exportJson()
|
||||||
|
|
|
@ -333,8 +333,8 @@ <h6>Need Help?</h6>
|
||||||
</label>
|
</label>
|
||||||
<div id="wikiGroup" class="mb-3 d-flex flex-column gap-2"></div>
|
<div id="wikiGroup" class="mb-3 d-flex flex-column gap-2"></div>
|
||||||
<div id="infoButtons" class="d-flex flex-wrap flex-row-reverse gap-2">
|
<div id="infoButtons" class="d-flex flex-wrap flex-row-reverse gap-2">
|
||||||
<button type="submit" class="btn btn-primary flex-fill" id="exportButton">Export</button>
|
<input type="submit" class="btn btn-primary flex-fill" id="exportButton" value="Export">
|
||||||
<button type="submit" class="btn btn-secondary flex-fill" id="previewButton" value="preview">Preview</button>
|
<input type="submit" class="btn btn-secondary flex-fill" id="previewButton" value="Preview">
|
||||||
<button type="button" class="btn btn-secondary flex-fill" id="cancelButton">Back</button>
|
<button type="button" class="btn btn-secondary flex-fill" id="cancelButton">Back</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue