Browse Source
Merge pull request #18770 from abpframework/docproblems
Fix Js errors
pull/18783/head
Gizem Mutu Kurt
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
34 additions and
10 deletions
-
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml
-
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js
|
|
|
@ -37,16 +37,23 @@ |
|
|
|
|
|
|
|
@section scripts { |
|
|
|
<abp-script-bundle name="@typeof(IndexModel).FullName"> |
|
|
|
<abp-script type="@typeof(MalihuCustomScrollbarPluginScriptBundleContributor)"/> |
|
|
|
<abp-script type="@typeof(ClipboardScriptBundleContributor)"/> |
|
|
|
<abp-script type="@typeof(AnchorJsScriptBundleContributor)"/> |
|
|
|
<abp-script type="@typeof(PrismjsScriptBundleContributor)"/> |
|
|
|
<abp-script type="@typeof(PopperJsScriptBundleContributor)"/> |
|
|
|
<abp-script src="/client-proxies/docs-proxy.js"/> |
|
|
|
<abp-script src="/Pages/Documents/Project/bootstrap-toc.js"/> |
|
|
|
<abp-script src="/Pages/Documents/Shared/Scripts/vs.js"/> |
|
|
|
<abp-script src="/Pages/Documents/Project/index.js"/> |
|
|
|
<abp-script src="/Pages/Documents/Shared/ErrorComponent/error.js"/> |
|
|
|
@if (Model.LoadSuccess) |
|
|
|
{ |
|
|
|
<abp-script type="@typeof(MalihuCustomScrollbarPluginScriptBundleContributor)"/> |
|
|
|
<abp-script type="@typeof(ClipboardScriptBundleContributor)"/> |
|
|
|
<abp-script type="@typeof(AnchorJsScriptBundleContributor)"/> |
|
|
|
<abp-script type="@typeof(PrismjsScriptBundleContributor)"/> |
|
|
|
<abp-script type="@typeof(PopperJsScriptBundleContributor)"/> |
|
|
|
<abp-script src="/client-proxies/docs-proxy.js"/> |
|
|
|
<abp-script src="/Pages/Documents/Project/bootstrap-toc.js"/> |
|
|
|
<abp-script src="/Pages/Documents/Shared/Scripts/vs.js"/> |
|
|
|
<abp-script src="/Pages/Documents/Project/index.js"/> |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
<abp-script src="/Pages/Documents/Shared/ErrorComponent/error.js"/> |
|
|
|
} |
|
|
|
|
|
|
|
</abp-script-bundle> |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -281,5 +281,22 @@ |
|
|
|
initSections(); |
|
|
|
|
|
|
|
initDocumentNodeBreadcrumb(); |
|
|
|
|
|
|
|
Element.prototype.querySelector = function (selector) { |
|
|
|
var result = $(decodeURI(selector)); |
|
|
|
if(result.length > 0){ |
|
|
|
return result[0]; |
|
|
|
} |
|
|
|
return null; |
|
|
|
}; |
|
|
|
|
|
|
|
var originalSet = Map.prototype.set; |
|
|
|
Map.prototype.set = function (key, value) { |
|
|
|
if(typeof key === 'string'){ |
|
|
|
key = decodeURI(key); |
|
|
|
} |
|
|
|
return originalSet.call(this, key, value); |
|
|
|
}; |
|
|
|
|
|
|
|
}); |
|
|
|
})(jQuery); |
|
|
|
|