Skip to content

Commit

Permalink
Use synchronous AJAX requests
Browse files Browse the repository at this point in the history
  • Loading branch information
prudloff-insite committed Oct 5, 2022
1 parent 454995b commit 1406bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion res/sfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
param['approach'] = 'function';
}

const posting = $.get(mw.config.get('wgScriptPath') + "/api.php", param);
const posting = $.ajax(mw.config.get('wgScriptPath') + "/api.php", {data: param, async: false});
posting.done(function (data) {
// Let's pass values
setDependentValues(srcName, sfsObject, data["sformsselect"].values);
Expand Down

0 comments on commit 1406bbf

Please sign in to comment.