Bugzilla – Attachment 153538 Details for
Bug 33744
Plugins not working on duplicated MARC fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33744: Fix deprecated use of .data('events')
Bug-33744-Fix-deprecated-use-of-dataevents.patch (text/plain), 1.42 KB, created by
Matt Blenkinsop
on 2023-07-17 10:56:49 UTC
(
hide
)
Description:
Bug 33744: Fix deprecated use of .data('events')
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2023-07-17 10:56:49 UTC
Size:
1.42 KB
patch
obsolete
>From 5088aeea8b4fe61899b4f7f75d349eb84044f607 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Tue, 16 May 2023 11:14:01 +0000 >Subject: [PATCH] Bug 33744: Fix deprecated use of .data('events') > >This patch removes a deprecated internal data structure no longer supported in jQuery. This means that AddEventHandlers now correctly passes events to cloned fields in the MARC record > >Test plan: >1) Apply patch >2) Repeat steps in the original bug description >3) This time clicking on the Upload button for a cloned field should launch the uploads pop up. >--- > koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >index d6f6715cc3..f8337e1dd9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >@@ -434,7 +434,7 @@ function AddEventHandlers (oldcontrol, newcontrol, newinputid ) { > // newinputid is the id attribute of the cloned controlling input field > // Note: This code depends on the jQuery data for events; this structure > // is moved to _data as of jQuery 1.8. >- var ev= $(oldcontrol).data('events'); >+ var ev = $._data(oldcontrol, "events"); > if(typeof ev != 'undefined') { > $.each(ev, function(prop,val) { > $.each(val, function(prop2,val2) { >-- >2.37.1 (Apple Git-137.1)
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 33744
:
151270
|
153538
|
154796
|
155081