Bugzilla – Attachment 52373 Details for
Bug 16148
Revised layout and behavior of marc modification template management
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16148 [Follow-up] Revised layout and behavior of marc modification template management
Bug-16148-Follow-up-Revised-layout-and-behavior-of.patch (text/plain), 3.40 KB, created by
Owen Leonard
on 2016-06-14 14:30:37 UTC
(
hide
)
Description:
Bug 16148 [Follow-up] Revised layout and behavior of marc modification template management
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-06-14 14:30:37 UTC
Size:
3.40 KB
patch
obsolete
>From 861526050ffd599d33cb7bfd43bc14235b9fe932 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 14 Jun 2016 10:26:25 -0400 >Subject: [PATCH] Bug 16148 [Follow-up] Revised layout and behavior of marc > modification template management >Content-Type: text/plain; charset="utf-8" > >This follow-up corrects a JavaScript error by using jQuery, which is is >more forgiving when selecting elements which may not exist on the page. > >Also changed: Corrected a duplicate class attribute and fixed a jshint >error. >--- > .../prog/en/modules/tools/marc_modification_templates.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js | 6 +++--- > 2 files changed, 4 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 082c77e..7c5159e 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 >@@ -84,7 +84,7 @@ > <td class="actions"> > <a class="btn btn-mini" href="/cgi-bin/koha/tools/marc_modification_templates.pl?template_id=[% TemplatesLoo.template_id %]&op=select_template" ><i class="fa fa-fw fa-pencil"></i> Edit actions</a> > <a class="btn btn-mini duplicate_template" href="#" data-toggle="modal" data-template_id="[% TemplatesLoo.template_id %]" data-target="#createTemplate"><i class="fa fa-fw fa-copy"></i> Duplicate</a> >- <a class="btn btn-mini" href="/cgi-bin/koha/tools/marc_modification_templates.pl?template_id=[% TemplatesLoo.template_id %]&op=delete_template" class="delete_template" onclick="return confirmDeleteAction();"><i class="fa fa-fw fa-trash"></i> Delete</a> >+ <a class="btn btn-mini delete_template" href="/cgi-bin/koha/tools/marc_modification_templates.pl?template_id=[% TemplatesLoo.template_id %]&op=delete_template" onclick="return confirmDeleteAction();"><i class="fa fa-fw fa-trash"></i> Delete</a> > </td> > </tr> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js b/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js >index 31ea7f7..80f74f3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js >@@ -1,6 +1,6 @@ > $(document).ready(function() { >- window.modaction_legend_innerhtml = document.getElementById('modaction_legend').innerHTML; >- window.action_submit_value = document.getElementById('action_submit').value; >+ window.modaction_legend_innerhtml = $("#modaction_legend").text(); >+ window.action_submit_value = $("#action_submit").text(); > > $('#select_template').find("input:submit").hide(); > $('#select_template').change(function() { >@@ -68,7 +68,7 @@ $(document).ready(function() { > > $("#duplicate_a_template").on("change",function(e){ > e.preventDefault(); >- if( this.value == '' ){ >+ if( this.value === '' ){ > $("#duplicate_current_template").val(""); > } else { > $("#duplicate_current_template").val(1); >-- >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 16148
:
49591
|
49603
|
51575
|
51977
|
52080
|
52373
|
52382
|
52383
|
52384
|
52385
|
52484
|
52485
|
52486