mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-12-29 08:55:00 +01: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
2 changed files with 3 additions and 3 deletions
|
@ -233,7 +233,7 @@ function initDraw() {
|
|||
objectInfoForm.addEventListener('submit', function(e) {
|
||||
e.preventDefault()
|
||||
// Allows for html form validation with preview button
|
||||
if (e.submitter.value == "preview") {
|
||||
if (e.submitter && e.submitter.value == "Preview") {
|
||||
preview()
|
||||
} else {
|
||||
exportJson()
|
||||
|
|
|
@ -333,8 +333,8 @@ <h6>Need Help?</h6>
|
|||
</label>
|
||||
<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">
|
||||
<button type="submit" class="btn btn-primary flex-fill" id="exportButton">Export</button>
|
||||
<button type="submit" class="btn btn-secondary flex-fill" id="previewButton" value="preview">Preview</button>
|
||||
<input type="submit" class="btn btn-primary flex-fill" id="exportButton" value="Export">
|
||||
<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>
|
||||
</div>
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue