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 a8a2653 commit 1b43f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion res/scriptSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function SFSelect_arrayEqual(a, b) {
param['approach'] = 'function';
}

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

0 comments on commit 1b43f27

Please sign in to comment.