Mercurial > hg > extraction-interface
comparison 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 |
comparison
equal
deleted
inserted
replaced
106:6de4932d993b | 107:7f2c5d542616 |
---|---|
499 }; | 499 }; |
500 | 500 |
501 if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { | 501 if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { |
502 document.body.appendChild(form); | 502 document.body.appendChild(form); |
503 form.submit(); | 503 form.submit(); |
504 document.body.removeChild(form); | |
504 } else { | 505 } else { |
505 form.submit(); // works under IE and Chrome, but not FF | 506 document.body.appendChild(form); |
507 form.submit(); | |
508 document.body.removeChild(form); | |
509 //form.submit(); // works under IE and Chrome, but not FF | |
506 } | 510 } |
507 } | 511 } |
508 | 512 |
509 function exportPage(topic_id) { | 513 function exportPage(topic_id) { |
510 var startPage = $('#exportPageStart').val(); | 514 var startPage = $('#exportPageStart').val(); |
1329 | 1333 |
1330 } | 1334 } |
1331 if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { | 1335 if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { |
1332 document.body.appendChild(form); | 1336 document.body.appendChild(form); |
1333 form.submit(); | 1337 form.submit(); |
1338 document.body.removeChild(form); | |
1334 } else { | 1339 } else { |
1335 form.submit(); // works under IE and Chrome, but not FF | 1340 document.body.appendChild(form); |
1341 form.submit(); | |
1342 document.body.removeChild(form); | |
1343 //form.submit(); // works under IE and Chrome, but not FF | |
1336 } | 1344 } |
1337 | 1345 |
1338 } | 1346 } |
1339 | 1347 |
1340 function configTagsInTopic(topic_id) { | 1348 function configTagsInTopic(topic_id) { |