diff --git a/src/Orchard.Web/Modules/Orchard.Taxonomies/Drivers/LocalizedTaxonomyFieldDriver.cs b/src/Orchard.Web/Modules/Orchard.Taxonomies/Drivers/LocalizedTaxonomyFieldDriver.cs index 5ed51cce0..926453965 100644 --- a/src/Orchard.Web/Modules/Orchard.Taxonomies/Drivers/LocalizedTaxonomyFieldDriver.cs +++ b/src/Orchard.Web/Modules/Orchard.Taxonomies/Drivers/LocalizedTaxonomyFieldDriver.cs @@ -30,12 +30,13 @@ namespace Orchard.Taxonomies.Drivers { } } - + var viewModel = new LocalizedTaxonomiesViewModel { ContentType = part.ContentItem.ContentType, FieldName = field.Name, Id = part.ContentItem.Id, - Setting = taxonomySettings + Setting = taxonomySettings, + PartName = part.PartDefinition.Name }; return shapeHelper.EditorTemplate(TemplateName: templateName, Model: viewModel, Prefix: GetPrefix(field, part)); }); diff --git a/src/Orchard.Web/Modules/Orchard.Taxonomies/ViewModels/LocalizedTaxonomiesViewModel.cs b/src/Orchard.Web/Modules/Orchard.Taxonomies/ViewModels/LocalizedTaxonomiesViewModel.cs index 76b7ea026..9941c32a5 100644 --- a/src/Orchard.Web/Modules/Orchard.Taxonomies/ViewModels/LocalizedTaxonomiesViewModel.cs +++ b/src/Orchard.Web/Modules/Orchard.Taxonomies/ViewModels/LocalizedTaxonomiesViewModel.cs @@ -7,6 +7,7 @@ namespace Orchard.Taxonomies.ViewModels { public string ContentType { get; set; } public string FieldName { get; set; } public int Id { get; set; } + public string PartName { get; set; } public TaxonomyFieldSettings Setting { get; set; } } } \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Taxonomies/Views/EditorTemplates/Fields/TaxonomyFieldList.cshtml b/src/Orchard.Web/Modules/Orchard.Taxonomies/Views/EditorTemplates/Fields/TaxonomyFieldList.cshtml index 8c5c5e51a..fb97741a9 100644 --- a/src/Orchard.Web/Modules/Orchard.Taxonomies/Views/EditorTemplates/Fields/TaxonomyFieldList.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Taxonomies/Views/EditorTemplates/Fields/TaxonomyFieldList.cshtml @@ -4,114 +4,121 @@ @{ Script.Require("jQuery"); var Taxonomyprefix = ((ViewData)).TemplateInfo.HtmlFieldPrefix.Replace('.', '_'); + + var partField = Model.PartName + "_" + Model.FieldName; + var functionName = "filterTaxonomyCulture_" + partField; + using (Script.Foot()) {