Mercurial > hg > extraction-interface
diff views/Extractapp/TaggingText.php @ 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 | e542b161d907 |
children | a36bb5a48af4 |
line wrap: on
line diff
--- a/views/Extractapp/TaggingText.php Mon Aug 08 17:47:19 2016 +0200 +++ b/views/Extractapp/TaggingText.php Tue Mar 21 18:21:10 2017 +0100 @@ -501,8 +501,12 @@ if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { document.body.appendChild(form); form.submit(); + document.body.removeChild(form); } else { - form.submit(); // works under IE and Chrome, but not FF + document.body.appendChild(form); + form.submit(); + document.body.removeChild(form); + //form.submit(); // works under IE and Chrome, but not FF } } @@ -1331,8 +1335,12 @@ if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { document.body.appendChild(form); form.submit(); + document.body.removeChild(form); } else { - form.submit(); // works under IE and Chrome, but not FF + document.body.appendChild(form); + form.submit(); + document.body.removeChild(form); + //form.submit(); // works under IE and Chrome, but not FF } }