Skip to content

Commit

Permalink
BugFix: Emded bundle js
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanbozkus committed May 9, 2020
1 parent 5391fb8 commit a7b24b0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/FormHelper/FormHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>FormHelper</PackageId>
<Version>3.2.0-beta1</Version>
<Version>3.2.1</Version>
<Authors>Sinan BOZKUS</Authors>
<projectUrl>https://github.com/sinanbozkus/FormHelper</projectUrl>
<RepositoryUrl>https://github.com/sinanbozkus/FormHelper</RepositoryUrl>
Expand Down Expand Up @@ -43,8 +43,8 @@

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp30'">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.0.3" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="3.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/FormHelper/Scripts/formhelper.bundle.min.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/FormHelper/Scripts/formhelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
return check;
};

function callFunction(name) {
function callFunction(name, result) {
var parts = name.split(".");
var n;
var obj = window;
Expand All @@ -485,7 +485,7 @@
return;
}
}
return obj ? obj() : undefined;
return obj ? obj(result) : undefined;
}

$.formhelper = function (options, el) {
Expand Down Expand Up @@ -612,7 +612,7 @@
}

if (options.callback) {
callFunction(options.callback);
callFunction(options.callback, result);
}

var delay = result.redirectDelay ? result.redirectDelay : options.redirectDelay;
Expand All @@ -622,7 +622,6 @@
window.location.replace(result.redirectUri);
}, hasMessage ? delay : 1);
}



if (result.status === 1) {
Expand Down
Loading

0 comments on commit a7b24b0

Please sign in to comment.