From 7d1fcae1dd673d7daf250737d0ace11a8f694d98 Mon Sep 17 00:00:00 2001 From: Salih Date: Tue, 16 Jan 2024 11:46:55 +0300 Subject: [PATCH] Fix Js errors --- .../Pages/Documents/Project/Index.cshtml | 27 ++++++++++++------- .../Pages/Documents/Project/index.js | 17 ++++++++++++ 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml index 0b45d547ee..04d47b6faa 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml @@ -37,16 +37,23 @@ @section scripts { - - - - - - - - - - + @if (Model.LoadSuccess) + { + + + + + + + + + + } + else + { + + } + } diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js index a2a2e15682..842df9e094 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js @@ -281,5 +281,22 @@ initSections(); initDocumentNodeBreadcrumb(); + + Element.prototype.querySelector = function (selector) { + var result = $(decodeURI(selector)); + if(result.length > 0){ + return result[0]; + } + return null; + }; + + const originalSet = Map.prototype.set; + Map.prototype.set = function (key, value) { + if(typeof key === 'string'){ + key = decodeURI(key); + } + return originalSet.call(this, key, value); + }; + }); })(jQuery);