View | Details | Raw Unified | Return to bug 10225
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-7 / +14 lines)
Lines 13-19 $(document).ready(function(){ Link Here
13
		$("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
13
		$("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
14
		/* Inline edit/delete links */
14
		/* Inline edit/delete links */
15
		var biblionumber = $("input[name='biblionumber']").attr("value");
15
		var biblionumber = $("input[name='biblionumber']").attr("value");
16
		$("td").click(function(event){
16
        $("tr.editable td").click(function(event){
17
			var $tgt = $(event.target);
17
			var $tgt = $(event.target);
18
			if($tgt.is("a")||$tgt.is(":first-child")||$tgt.is(":nth-child(2)")){ return true; } else {
18
			if($tgt.is("a")||$tgt.is(":first-child")||$tgt.is(":nth-child(2)")){ return true; } else {
19
			var rowid = $(this).parent().attr("id");
19
			var rowid = $(this).parent().attr("id");
Lines 134-144 $(document).ready(function() { Link Here
134
                [% END %]
134
                [% END %]
135
            </tr>
135
            </tr>
136
                [% FOREACH item_loo IN item_loop %]
136
                [% FOREACH item_loo IN item_loop %]
137
                [% IF ( item_loo.itemnumber == itemnumber) %]
137
                    [% IF ( item_loo.itemnumber == itemnumber) %]
138
                <tr id="row[% item_loo.itemnumber %]" class="active">
138
                        [% IF item_loo.nomod %]
139
                [% ELSE %]
139
                           <tr id="row[% item_loo.itemnumber %]" class="active">
140
                <tr id="row[% item_loo.itemnumber %]">
140
                        [% ELSE %]
141
                [% END %]
141
                            <tr id="row[% item_loo.itemnumber %]" class="active editable">
142
                        [% END %]
143
                    [% ELSE %]
144
                        [% IF item_loo.nomod %]
145
                           <tr id="row[% item_loo.itemnumber %]">
146
                        [% ELSE %]
147
                            <tr id="row[% item_loo.itemnumber %]" class="editable">
148
                        [% END %]
149
                    [% END %]
142
                    [% IF ( item_loo.nomod ) %] <td colspan="2">&nbsp;</td>[% ELSE %][% IF ( item_loo.hostitemflag ) %]<td><a href="additem.pl?op=edititem&amp;biblionumber=[% item_loo.hostbiblionumber %]&amp;itemnumber=[% item_loo.itemnumber %]#edititem">Edit in host</a></td>
150
                    [% IF ( item_loo.nomod ) %] <td colspan="2">&nbsp;</td>[% ELSE %][% IF ( item_loo.hostitemflag ) %]<td><a href="additem.pl?op=edititem&amp;biblionumber=[% item_loo.hostbiblionumber %]&amp;itemnumber=[% item_loo.itemnumber %]#edititem">Edit in host</a></td>
143
<td><a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delinkitem&amp;biblionumber=[% biblionumber %]&amp;hostitemnumber=[% item_loo.itemnumber %]">Delink</a></td>
151
<td><a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delinkitem&amp;biblionumber=[% biblionumber %]&amp;hostitemnumber=[% item_loo.itemnumber %]">Delink</a></td>
144
[% ELSE %]<td><a href="additem.pl?op=edititem&amp;biblionumber=[% biblionumber %]&amp;itemnumber=[% item_loo.itemnumber %]#edititem">Edit</a></td>
152
[% ELSE %]<td><a href="additem.pl?op=edititem&amp;biblionumber=[% biblionumber %]&amp;itemnumber=[% item_loo.itemnumber %]#edititem">Edit</a></td>
145
- 

Return to bug 10225