# HG changeset patch # User Calvin Yeh # Date 1490116870 -3600 # Node ID 7f2c5d542616c81ba6d827ccb2e16e9f0851e56b # Parent 6de4932d993b56c60e6719afaf4459a0d7e5dfef fixed form submit issue in Chrome 56.x diff -r 6de4932d993b -r 7f2c5d542616 js/taggingtext.js --- a/js/taggingtext.js Mon Aug 08 17:47:19 2016 +0200 +++ b/js/taggingtext.js Tue Mar 21 18:21:10 2017 +0100 @@ -1449,8 +1449,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 + //form.submit(); // works under IE and Chrome, but not FF + document.body.appendChild(form); + form.submit(); + document.body.removeChild(form); } } diff -r 6de4932d993b -r 7f2c5d542616 views/Extractapp/TaggingText.php --- 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 } }