Skip to content

Commit

Permalink
Fixed issue: ajax mode unfunctional on IE and Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Jun 18, 2018
1 parent 6ab6002 commit 1fcf633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/survey/vanilla/scripts/ajaxify.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ var AjaxSubmitObject = function () {
debug: true,
forceRedirectOnFail: true,
reRenderCSS : true,
logObject : new ConsoleShim('PJAX-LOG'),
logObject : new ConsoleShim('PJAX-LOG', (LSvar.debugMode < 1)),
scriptloadtimeout: 1500,
});
// Always bind to document to not need to bind again
$(document).on('click', '.ls-move-btn',function (e) {
$('#limesurvey').append('<input name=\''+$(this).attr('name')+'\' value=\''+$(this).attr('value')+'\' type=\'hidden\' />');
if(isIE10) {
if(isIE10 || /Edge\/\d+\.\d+/.test(navigator.userAgent)) {
e.preventDefault();
$('#limesurvey').trigger('submit');
return false;
Expand Down

0 comments on commit 1fcf633

Please sign in to comment.