Skip to content

Commit 5c87fcc

Browse files
Use synchronous AJAX requests
1 parent 2999c1b commit 5c87fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

res/sfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
param['approach'] = 'function';
215215
}
216216

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

0 commit comments

Comments
 (0)