Mercurial > hg > extraction-interface
comparison js/taggingtext.js @ 107:7f2c5d542616 extractapp
fixed form submit issue in Chrome 56.x
author | Calvin Yeh <cyeh@mpipw-berlin.mpg.com> |
---|---|
date | Tue, 21 Mar 2017 18:21:10 +0100 |
parents | 6de4932d993b |
children | 21e89eca0b84 |
comparison
equal
deleted
inserted
replaced
106:6de4932d993b | 107:7f2c5d542616 |
---|---|
1447 form.appendChild(hiddenField); | 1447 form.appendChild(hiddenField); |
1448 | 1448 |
1449 if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { | 1449 if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { |
1450 document.body.appendChild(form); | 1450 document.body.appendChild(form); |
1451 form.submit(); | 1451 form.submit(); |
1452 document.body.removeChild(form); | |
1452 } else { | 1453 } else { |
1453 form.submit(); // works under IE and Chrome, but not FF | 1454 //form.submit(); // works under IE and Chrome, but not FF |
1455 document.body.appendChild(form); | |
1456 form.submit(); | |
1457 document.body.removeChild(form); | |
1454 } | 1458 } |
1455 } | 1459 } |
1456 | 1460 |
1457 | 1461 |
1458 // ============ | 1462 // ============ |