Bugzilla – Attachment 29504 Details for
Bug 11413
Marc modification template has not the expected behavior if the condition and source fields are on the same field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 11413: Reflect the changes to the interface
SIGNED-OFF-Bug-11413-Reflect-the-changes-to-the-in.patch (text/plain), 1.71 KB, created by
Kyle M Hall (khall)
on 2014-07-03 17:46:23 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 11413: Reflect the changes to the interface
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-07-03 17:46:23 UTC
Size:
1.71 KB
patch
obsolete
>From 975d506b894097264f4e19cdf959e18930332589 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 18 Dec 2013 10:08:50 +0100 >Subject: [PATCH] [SIGNED-OFF] Bug 11413: Reflect the changes to the interface > >Test plan: >- add/edit an action on the marc modification templates tools >- choose an action and define a condition >- define the source field as same as the condition field >- verify the All/1st dropdown list is changed to Every/1st > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../modules/tools/marc_modification_templates.tt | 11 +++++++---- > 1 files changed, 7 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt >index 3df481b..fba6c78 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt >@@ -35,18 +35,21 @@ $(document).ready(function() { > return false; > } > }); >+ >+ $("#conditional_field,#from_field").change(function(){ >+ updateAllEvery(); >+ }); > }); > //]]> > </script> > > <script> >- >-function updateWarnings(){ >+function updateAllEvery(){ > if ( $("#conditional_field").is(":visible") ) { > if ( $("#conditional_field").val() == $("#from_field").val() && $("#from_field").val().length > 0 ) { >- $("#warning_multivalued").show(); >+ $("#field_number option[value='0']").html(_("Every")); > } else { >- $("#warning_multivalued").hide(); >+ $("#field_number option[value='0']").html(_("All")); > } > } > } >-- >1.7.2.5
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 11413
:
23622
|
23623
|
23624
|
25758
|
25759
|
25760
|
28993
|
28994
|
28995
|
28996
|
28997
|
28998
|
29502
|
29503
|
29504
|
33213
|
33214
|
33215
|
33482
|
33483
|
33555
|
33556
|
33557
|
33558
|
33559