Bugzilla – Attachment 164125 Details for
Bug 36461
Advanced editor should disable RequireJS timeout with waitSeconds: 0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36461: Advanced editor should disable RequireJS timeout with waitSeconds: 0
Bug-36461-Advanced-editor-should-disable-RequireJS.patch (text/plain), 1.84 KB, created by
Nick Clemens (kidclamp)
on 2024-03-29 12:14:13 UTC
(
hide
)
Description:
Bug 36461: Advanced editor should disable RequireJS timeout with waitSeconds: 0
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-03-29 12:14:13 UTC
Size:
1.84 KB
patch
obsolete
>From bce6bb20e511d06a6c82b14459c0d9086cb2170a Mon Sep 17 00:00:00 2001 >From: Phil Ringnalda <phil@chetcolibrary.org> >Date: Thu, 28 Mar 2024 15:02:38 -0700 >Subject: [PATCH] Bug 36461: Advanced editor should disable RequireJS timeout > with waitSeconds: 0 > >We aren't actually doing any error handling with the RequireJS waitSeconds >config, just leaving the advanced editor hanging on loading if it times out, >so instead we should disable it. > >Test plan: > >1. Set the preference EnableAdvancedCatalogingEditor to Enable >2. Load the Cataloging module home page in Firefox and open Firefox's > Web Developer Tools, and in the Network tab change from "No Throttling" > to "Regular 2G" >3. In the Cataloging page, click Advanced editor, and watch it attempt to > load for 30 seconds, followed by a setTimout error in the devtools console, > and then wait as long as you can stand for anything but the "Loading, > please wait..." to happen in the web page. Nothing ever will. >4. Apply the patch, restart, set EnableAdvancedCatalogingEditor back to > Enable, turn throttling on, load the Advanced editor again, and note that > even though it will take a minute or more to load through the throttling, > the editor does actually load. > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc >index 8f709215cfe..13855ec6e22 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc >@@ -29,7 +29,7 @@ require.config( { > themelang: '[% themelang | html %]', > }, > }, >- waitSeconds: 30, >+ waitSeconds: 0, > } ); > </script> > >-- >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 36461
:
164099
| 164125