Bugzilla – Attachment 13796 Details for
Bug 9154
On item edit page, highlight row of item being edited
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[Signed off] Bug 9154 - On item edit page, highlight row of item being edited
Signed-off-Bug-9154---On-item-edit-page-highlight-.patch (text/plain), 4.78 KB, created by
Melia Meggs
on 2012-11-30 00:40:47 UTC
(
hide
)
Description:
[Signed off] Bug 9154 - On item edit page, highlight row of item being edited
Filename:
MIME Type:
Creator:
Melia Meggs
Created:
2012-11-30 00:40:47 UTC
Size:
4.78 KB
patch
obsolete
>From 51370f7971bf296956585c426a431fa2eaecb080 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 27 Nov 2012 14:34:27 -0500 >Subject: [PATCH] [Signed off] Bug 9154 - On item edit page, highlight row of item being edited > >This patch changes the item edit page to add a highlighting >background color to the row in the table of all items corresponding >to the item being edited. Changes to JavaScript have been made >to allow row color changes on hover. > >Other minor edits: Capitilization corrections. > >Signed-off-by: Melia Meggs <melia@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css | 8 ++++++++ > .../prog/en/modules/cataloguing/additem.tt | 14 +++++++++----- > 2 files changed, 17 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css >index d35a471..79ceb48 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css >@@ -155,4 +155,12 @@ a.tagnum { > .floating { > -webkit-box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, .5); > box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, .5); >+} >+ >+tr.active td { >+ background-color: #FFFFCC; >+} >+ >+tr.active.highlight td { >+ background-color: #FEF4B4; > } >\ No newline at end of file >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >index 2c33df8..0222046 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >@@ -87,8 +87,8 @@ function confirm_deletion(biblionumber,itemnumber) { > > $(document).ready(function() { > $("#cataloguing_additem_itemlist tr").hover( >- function () {$(this).attr("class","highlight");}, >- function () {$(this).attr("class","" );} >+ function () {$(this).addClass("highlight");}, >+ function () {$(this).removeClass("highlight");} > ); > }); > //]]> >@@ -131,7 +131,11 @@ $(document).ready(function() { > [% END %] > </tr> > [% FOREACH item_loo IN item_loop %] >+ [% IF ( item_loo.itemnumber == itemnumber) %] >+ <tr id="row[% item_loo.itemnumber %]" class="active"> >+ [% ELSE %] > <tr id="row[% item_loo.itemnumber %]"> >+ [% END %] > [% IF ( item_loo.nomod ) %] <td colspan="2"> </td>[% ELSE %][% IF ( item_loo.hostitemflag ) %]<td><a href="additem.pl?op=edititem&biblionumber=[% item_loo.hostbiblionumber %]&itemnumber=[% item_loo.itemnumber %]#edititem">Edit in host</a></td> > <td><a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delinkitem&biblionumber=[% biblionumber %]&hostitemnumber=[% item_loo.itemnumber %]">Delink</a></td> > [% ELSE %]<td><a href="additem.pl?op=edititem&biblionumber=[% biblionumber %]&itemnumber=[% item_loo.itemnumber %]#edititem">Edit</a></td> >@@ -197,8 +201,8 @@ $(document).ready(function() { > --> > > <input type="submit" name="add_submit" value="Add item" onclick="return Check(this.form)" /> >- <input type="submit" name="add_duplicate_submit" value="Add & Duplicate" onclick="return Check(this.form)" /> >- <input type="submit" name="add_multiple_copies" value="Add Multiple Copies" onclick="javascript:this.nextSibling.style.visibility='visible';document.f.number_of_copies.focus(); return false;" /><span id="add_multiple_copies_span" style="visibility:hidden"> >+ <input type="submit" name="add_duplicate_submit" value="Add & duplicate" onclick="return Check(this.form)" /> >+ <input type="submit" name="add_multiple_copies" value="Add multiple copies" onclick="javascript:this.nextSibling.style.visibility='visible';document.f.number_of_copies.focus(); return false;" /><span id="add_multiple_copies_span" style="visibility:hidden"> > <label for="number_of_copies">Number of copies to add : </label> > <input type="text" id="number_of_copies" name="number_of_copies" value="" size="2" /> > <input type="submit" id="add_multiple_copies_submit" name="add_multiple_copies_submit" value="Add" onclick="javascript:return Check(this.form) && CheckMultipleAdd(this.form.number_of_copies.value);" /> >@@ -208,7 +212,7 @@ $(document).ready(function() { > <input type="hidden" name="tag" value="[% itemtagfield %]" /> > <input type="hidden" name="subfield" value="[% itemtagsubfield %]" /> > <input type="hidden" name="field_value" value="[% itemnumber %]" /> >- <input type="submit" value="Save Changes" onclick="return Check(this.form)" /> >+ <input type="submit" value="Save changes" onclick="return Check(this.form)" /> > [% END %]</fieldset> > > <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >-- >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 9154
:
13708
|
13709
|
13796
|
13823