Bugzilla – Attachment 717 Details for
Bug 2534
Viewing items table on item edit screen requires horizontal scrolling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed change
0001-Adding-inline-edit-links-for-additem-table.-Suggeste.patch (text/plain), 3.98 KB, created by
Chris Cormack
on 2010-01-07 16:10:00 UTC
(
hide
)
Description:
Proposed change
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-01-07 16:10:00 UTC
Size:
3.98 KB
patch
obsolete
>From 96e1feed190fd6173dc497b05f678df662da45e7 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 7 Jan 2010 11:05:53 -0500 >Subject: [PATCH] Adding inline edit links for additem table. Suggested for Bug 2534 > >--- > koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css | 5 +++++ > .../prog/en/modules/cataloguing/additem.tmpl | 15 +++++++++++++-- > 2 files changed, 18 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css >index 6683617..0377cca 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css >@@ -127,3 +127,8 @@ a.tagnum { > .mandatory_marker { > color: red; > } >+.linktools { display: block; white-space: nowrap; } >+.linktools a { font-size : 75%; display:block;text-decoration:none;} >+.linktools a {margin:0 2px;padding:2px;background-color:#FFF;text-align:center; } >+.linktools a:first-child { border-bottom: 1px solid #DDD; } >+.linktools a:hover { background-color: #FFC; } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl >index 5b43114..9d2d864 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl >@@ -5,6 +5,17 @@ > //<![CDATA[ > $(document).ready(function(){ > $("fieldset.rows input").keydown(function(e){ return checkEnter(e); }); >+ /* Inline edit/delete links */ >+ var biblionumber = $("input[name='biblionumber']").attr("value"); >+ $("td").click(function(event){ >+ var $tgt = $(event.target); >+ if($tgt.is("a")||$tgt.is(":first-child")||$tgt.is(":nth-child(2)")){ return true; } else { >+ var rowid = $(this).parent().attr("id"); >+ num_rowid = rowid.replace("row",""); >+ $(".linktools").remove(); >+ $(this).append("<span class=\"linktools\"><a href=\"/cgi-bin/koha/cataloguing/additem.pl?op=edititem&frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&itemnumber="+num_rowid+"#edititem\">Edit Item</a> <a href=\"/cgi-bin/koha/cataloguing/additem.pl?op=delitem&frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&itemnumber="+num_rowid+"\" onclick=\"confirm_deletion(<!-- TMPL_VAR NAME="biblionumber" -->,"+num_rowid+"); return false;\">Delete Item</a></span>"); >+ } >+ }); > }); > function active(numlayer) > { >@@ -195,7 +206,7 @@ function set_to_today(id, force) { > </tr> > <!-- TMPL_LOOP NAME="item_loop" --> > <tr id="row<!-- TMPL_VAR NAME="itemnumber" -->"> >- <!-- TMPL_IF Name="nomod"--> <td colspan="2"> </td><!--TMPL_ELSE--><td><a href="additem.pl?op=edititem&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->">Edit</a></td> >+ <!-- TMPL_IF Name="nomod"--> <td colspan="2"> </td><!--TMPL_ELSE--><td><a href="additem.pl?op=edititem&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->#edititem">Edit</a></td> > <td><a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delitem&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->" onclick="confirm_deletion(<!-- TMPL_VAR NAME="biblionumber" -->,<!-- TMPL_VAR NAME="itemnumber" -->); return false;">Delete</a></td><!--/TMPL_IF--> > <!-- TMPL_LOOP NAME="item_value" --> > <td><!-- TMPL_VAR ESCAPE=HTML NAME="field" --></td> >@@ -214,7 +225,7 @@ function set_to_today(id, force) { > <!-- TMPL_IF name="opisadd" --> > <h2 id="additema">Add Item</h2> > <!-- TMPL_ELSE --> >- <h2>Edit Item #<!-- TMPL_VAR NAME="itemnumber" --></h2> >+ <h2 id="edititem">Edit Item #<!-- TMPL_VAR NAME="itemnumber" --></h2> > <!-- /TMPL_IF --> > <fieldset class="rows"> > <ol> >-- >1.6.3.3 >
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 2534
:
715
|
716
|
717
|
718
|
5087
|
5222
|
5223
|
5224