Browse Source

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

Exclude `function` parameters in querystrings.
pull/18004/head
Engincan VESKE 3 years ago
committed by GitHub
parent
commit
fb29459665
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/modal-manager.js

9
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/modal-manager.js

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

Loading…
Cancel
Save