|
|
@@ -269,7 +269,7 @@
|
|
|
</fieldset>
|
|
|
</form>
|
|
|
|
|
|
- <form action="/_api/admin/customize/highlightJsStyle" method="post" class="form-horizontal" id="cutomhighlightJsStyleSettingForm" role="form">
|
|
|
+ <form action="/_api/admin/customize/highlightJsStyle" method="post" class="form-horizontal" id="customhighlightJsStyleSettingForm" role="form">
|
|
|
<fieldset>
|
|
|
<legend>{{ t('customize_page.Code Highlight') }}</legend>
|
|
|
<div class="form-group">
|
|
|
@@ -303,7 +303,7 @@
|
|
|
|
|
|
<p class="help-block">
|
|
|
Examples:
|
|
|
- <pre class="hljs hljs-border {% if !settingForm['customize:highlightJsStyleBorder'] %}hljs-no-border{% endif %}"><code class="highlightjs-demo">function $initHighlight(block, cls) {
|
|
|
+ <pre class="hljs {% if !settingForm['customize:highlightJsStyleBorder'] %}hljs-no-border{% endif %}"><code class="highlightjs-demo">function $initHighlight(block, cls) {
|
|
|
try {
|
|
|
if (cls.search(/\bno\-highlight\b/) != -1)
|
|
|
return process(block, true, 0x0F) +
|
|
|
@@ -495,7 +495,7 @@ window.addEventListener('load', (event) => {
|
|
|
{% block body_end %}
|
|
|
{% parent %}
|
|
|
<script>
|
|
|
- $(`#customthemeSettingForm, #cutomlayoutSettingForm, #cutombehaviorSettingForm, #cutomhighlightJsStyleSettingForm,
|
|
|
+ $(`#customthemeSettingForm, #cutomlayoutSettingForm, #cutombehaviorSettingForm, #customhighlightJsStyleSettingForm,
|
|
|
#customfeaturesSettingForm, #cutomheaderSettingForm, #cutomcssSettingForm, #cutomscriptSettingForm, #customtitleSettingForm`
|
|
|
).each(function() {
|
|
|
$(this).submit(function()
|
|
|
@@ -585,7 +585,7 @@ window.addEventListener('load', (event) => {
|
|
|
$('.hljs-no-border').removeClass('hljs-no-border');
|
|
|
}
|
|
|
function selectBorderOff(){
|
|
|
- $('.hljs-border').addClass('hljs-no-border')
|
|
|
+ $('#customhighlightJsStyleSettingForm .hljs').addClass('hljs-no-border')
|
|
|
}
|
|
|
</script>
|
|
|
|