Bugzilla – Attachment 2389 Details for
Bug 4867
cannot clone subfields in marc editor, other clone/unclone weirdness
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
patch4867.txt (text/plain), 1.01 KB, created by
Fridolin Somers
on 2010-07-19 10:09:29 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2010-07-19 10:09:29 UTC
Size:
1.01 KB
patch
obsolete
>--- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >+++ koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl >@@ -453,14 +453,16 @@ > > // Changing the "..." link's onclick attribute for plugin callback > var links = clone.getElementsByTagName('a'); >- var link = links[0]; >- var buttonDotOnClick = link.getAttribute('onclick'); >- if(buttonDotOnClick.match('Clictag')){ // -1- It s a plugin >- var re = /\('.*'\)/i; >- buttonDotOnClick = buttonDotOnClick.replace(re,"('"+linkid+"')"); >- if(buttonDotOnClick){ >- link.setAttribute('onclick',buttonDotOnClick); >- } >+ if (links.length>0) { >+ var link = links[0]; >+ var buttonDotOnClick = link.getAttribute('onclick'); >+ if(buttonDotOnClick.match('Clictag')){ // -1- It s a plugin >+ var re = /\('.*'\)/i; >+ buttonDotOnClick = buttonDotOnClick.replace(re,"('"+linkid+"')"); >+ if(buttonDotOnClick){ >+ link.setAttribute('onclick',buttonDotOnClick); >+ } >+ } > } > >
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 4867
: 2389