Skip to content

Commit

Permalink
Fix #522, html code is shown in select widget page.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriaWei committed Nov 19, 2024
1 parent 51728e3 commit d7f56cf
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 15 deletions.
5 changes: 0 additions & 5 deletions src/EasyFrameWork/Mvc/RazorPages/LocalizeString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,5 @@ public override string ToString()
{
return this.Get();
}

public static implicit operator string(LocalizeString content)
{
return content.ToString();
}
}
}
2 changes: 1 addition & 1 deletion src/ZKEACMS.Article/Views/ArticleType/Select.cshtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@using Easy.ViewPort.jsTree
@using ZKEACMS.Article.Models
@{
this.WorkContext().CurrentPage.Title = L("Article Category");
this.WorkContext().CurrentPage.Title = L("Article Category").Text;
Layout = Layouts.PopUp;
Style.Reqiured("jsTree").AtHead();
Script.Reqiured("jsTree").AtFoot();
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.Product/Views/ProductCategory/Select.cshtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@using Easy.ViewPort.jsTree
@using ZKEACMS.Article.Models
@{
this.WorkContext().CurrentPage.Title = L("Product Category");
this.WorkContext().CurrentPage.Title = L("Product Category").Text;
Layout = Layouts.PopUp;
Style.Reqiured("jsTree").AtHead();
Script.Reqiured("jsTree").AtFoot();
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.Shop/Views/CustomOrder/Failed.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
Layout = Layouts.CustomerCenter;
this.WorkContext().CurrentPage.Title = L("Order failed to pay");
this.WorkContext().CurrentPage.Title = L("Order failed to pay").Text;
}
<div class="text-center">
<div class="page-header">
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.WebHost/Views/Account/Edit.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@model Easy.Modules.User.Models.UserEntity
@{
this.WorkContext().CurrentPage.Title = L("Account Center");
this.WorkContext().CurrentPage.Title = L("Account Center").Text;
Layout = Layouts.CustomerCenter;
Script.Reqiured("validate").AtFoot();
}
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.WebHost/Views/Account/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
this.WorkContext().CurrentPage.Title = L("Account Center");
this.WorkContext().CurrentPage.Title = L("Account Center").Text;
Layout = Layouts.CustomerCenter;
}
<div class="panel panel-default user-info">
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.WebHost/Views/Account/PassWord.cshtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
this.WorkContext().CurrentPage.Title = L("Account Center");
this.WorkContext().CurrentPage.Title = L("Account Center").Text;
Layout = Layouts.CustomerCenter;
Script.Reqiured("validate").AtFoot();
}
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.WebHost/Views/Media/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@using ZKEACMS.Common.ViewModels
@model MediaViewModel
@{
this.WorkContext().CurrentPage.Title = L("Media");
this.WorkContext().CurrentPage.Title = L("Media").Text;
var action = Html.ViewContext.RouteData.Values["action"].ToString();

Script.Reqiured("image-viewer").AtFoot();
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.WebHost/Views/Navigation/Select.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@using Easy.ViewPort.jsTree

@{
this.WorkContext().CurrentPage.Title = L("Navigation");
this.WorkContext().CurrentPage.Title = L("Navigation").Text;
Layout = Layouts.PopUp;
Script.Reqiured("jsTree").AtFoot();
Style.Reqiured("jsTree").AtHead();
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.WebHost/Views/Page/Select.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@using Easy.ViewPort.jsTree;
@{
this.WorkContext().CurrentPage.Title = L("Page");
this.WorkContext().CurrentPage.Title = L("Page").Text;
Script.Reqiured("jsTree").AtFoot();
Style.Reqiured("jsTree").AtHead();
Layout = Layouts.PopUp;
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.WebHost/Views/User/PassWord.cshtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
this.WorkContext().CurrentPage.Title = L("Change Password");
this.WorkContext().CurrentPage.Title = L("Change Password").Text;
Script.Reqiured("validate").AtFoot();
}
@using (Html.BeginForm())
Expand Down

0 comments on commit d7f56cf

Please sign in to comment.