Bugzilla – Attachment 162623 Details for
Bug 35718
Remove ES6 warnings from JavaScript system preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35718: Remove ES6 warnings branches.tt
Bug-35718-Remove-ES6-warnings-branchestt.patch (text/plain), 1.38 KB, created by
Lucas Gass (lukeg)
on 2024-02-29 22:20:29 UTC
(
hide
)
Description:
Bug 35718: Remove ES6 warnings branches.tt
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-02-29 22:20:29 UTC
Size:
1.38 KB
patch
obsolete
>From 09bd8257c02a28e633000c88787a67fe88208bdb Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 29 Feb 2024 22:20:12 +0000 >Subject: [PATCH] Bug 35718: Remove ES6 warnings branches.tt > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >index 6fdb1ad4f1..54915dcfea 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >@@ -733,13 +733,15 @@ > var syntax = $(this).data("syntax"); > $("#collapse_" + target ).show(); > if( syntax ){ >+ var esLintConfig = { 'esversion': 6 }; >+ var lint_type = syntax === 'javascript' ? esLintConfig : true; > var editor = CodeMirror.fromTextArea( document.getElementById( target ), { > lineNumbers: true, > mode: syntax, > lineWrapping: true, > viewportMargin: Infinity, > gutters: ["CodeMirror-lint-markers"], >- lint: true >+ lint: lint_type, > }); > editor.on("blur", function(){ > editor.save(); >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35718
:
160584
|
160613
|
162623
|
162631
|
162632