Bugzilla – Attachment 23624 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]
Bug 11413: Reflect the changes to the interface
Bug-11413-Reflect-the-changes-to-the-interface.patch (text/plain), 1.64 KB, created by
Jonathan Druart
on 2013-12-18 10:58:47 UTC
(
hide
)
Description:
Bug 11413: Reflect the changes to the interface
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-12-18 10:58:47 UTC
Size:
1.64 KB
patch
obsolete
>From 10dad5246092dd85218f75da92543a89c8e09f35 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] 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 >--- > .../prog/en/modules/tools/marc_modification_templates.tt | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > >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 4472c67..177f299 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,11 +35,25 @@ $(document).ready(function() { > return false; > } > }); >+ >+ $("#conditional_field,#from_field").change(function(){ >+ updateAllEvery(); >+ }); > }); > //]]> > </script> > > <script> >+function updateAllEvery(){ >+ if ( $("#conditional_field").is(":visible") ) { >+ if ( $("#conditional_field").val() == $("#from_field").val() && $("#from_field").val().length > 0 ) { >+ $("#field_number option[value='0']").html(_("Every")); >+ } else { >+ $("#field_number option[value='0']").html(_("All")); >+ } >+ } >+} >+ > function onActionChange(selectObj) { > // get the index of the selected option > var idx = selectObj.selectedIndex; >-- >1.7.10.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 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