Merge pull request #17993 from abpframework/modal-manager.js

Exclude `function` parameters in querystrings.
pull/18004/head
Engincan VESKE 1 year ago committed by GitHub
commit fb29459665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -134,8 +134,15 @@ $.validator.defaults.ignore = ''; //TODO: Would be better if we can apply only f
_args = args || {};
var argsWithoutFunc = {};
for (a in _args) {
if (_args.hasOwnProperty(a) && typeof _args[a] !== 'function') {
argsWithoutFunc[a] = _args[a];
}
}
_createContainer(_modalId)
.load(options.viewUrl, $.param(_args), function (response, status, xhr) {
.load(options.viewUrl, $.param(argsWithoutFunc), function (response, status, xhr) {
if (status === "error") {
//TODO: Handle!
return;

Loading…
Cancel
Save