Browse Source
Exclude `function` parameters in querystrings.
pull/17993/head
maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
8 additions and
1 deletions
-
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 || {}; |
|
|
|
|
|
|
|
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; |
|
|
|
|