Bugzilla – Attachment 58914 Details for
Bug 17725
Repeating a field or subfield clones content
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17725: Same for textarea when cloning a field
Bug-17725-Same-for-textarea-when-cloning-a-field.patch (text/plain), 1.19 KB, created by
Jonathan Druart
on 2017-01-13 07:52:58 UTC
(
hide
)
Description:
Bug 17725: Same for textarea when cloning a field
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-01-13 07:52:58 UTC
Size:
1.19 KB
patch
obsolete
>From 187272b8ddc0c42270750c0e2cb5edcd0435b162 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 11 Jan 2017 21:06:09 +0100 >Subject: [PATCH] Bug 17725: Same for textarea when cloning a field > >--- > koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >index 44cd949..59efd6c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >@@ -129,6 +129,12 @@ function CloneField(index, hideMarc, advancedMARCEditor) { > inputs[j].value = ""; > } > } >+ var textareas = divs[i].getElementsByTagName('textarea'); >+ for( j = 0 ; j < textareas.length ; j++ ) { >+ if(textareas[j].getAttribute("id") && textareas[j].getAttribute("id").match(/^tag_/) ){ >+ textareas[j].value = ""; >+ } >+ } > > inputs[0].setAttribute('id',inputs[0].getAttribute('id')+new_key); > inputs[0].setAttribute('name',inputs[0].getAttribute('name')+new_key); >-- >2.1.4
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 17725
:
58867
|
58914
|
58915
|
58916
|
58944
|
58945