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

(-)a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css (+5 lines)
Lines 127-129 a.tagnum { Link Here
127
.mandatory_marker {
127
.mandatory_marker {
128
	color: red;
128
	color: red;
129
}
129
}
130
.linktools { display: block; white-space: nowrap; }
131
.linktools a { font-size : 75%; display:block;text-decoration:none;}
132
.linktools a {margin:0 2px;padding:2px;background-color:#FFF;text-align:center; }
133
.linktools a:first-child { border-bottom: 1px solid #DDD; }
134
.linktools a:hover { background-color: #FFC; }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl (-3 / +13 lines)
Lines 5-10 Link Here
5
//<![CDATA[
5
//<![CDATA[
6
$(document).ready(function(){
6
$(document).ready(function(){
7
		$("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
7
		$("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
8
		/* Inline edit/delete links */
9
		var biblionumber = $("input[name='biblionumber']").attr("value");
10
		$("td").click(function(event){
11
			var $tgt = $(event.target);
12
			if($tgt.is("a")||$tgt.is(":first-child")||$tgt.is(":nth-child(2)")){ return true; } else {
13
			var rowid = $(this).parent().attr("id");
14
			num_rowid = rowid.replace("row","");
15
			$(".linktools").remove();
16
			$(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>");
17
		}
18
		});
8
});
19
});
9
function active(numlayer)
20
function active(numlayer)
10
{
21
{
Lines 195-201 function set_to_today(id, force) { Link Here
195
            </tr>
206
            </tr>
196
                <!-- TMPL_LOOP NAME="item_loop" -->
207
                <!-- TMPL_LOOP NAME="item_loop" -->
197
                <tr id="row<!-- TMPL_VAR NAME="itemnumber" -->">
208
                <tr id="row<!-- TMPL_VAR NAME="itemnumber" -->">
198
                    <!-- TMPL_IF Name="nomod"--> <td colspan="2">&nbsp;</td><!--TMPL_ELSE--><td><a href="additem.pl?op=edititem&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->">Edit</a></td>
209
                    <!-- TMPL_IF Name="nomod"--> <td colspan="2">&nbsp;</td><!--TMPL_ELSE--><td><a href="additem.pl?op=edititem&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->#edititem">Edit</a></td>
199
                    <td><a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delitem&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->" onclick="confirm_deletion(<!-- TMPL_VAR NAME="biblionumber" -->,<!-- TMPL_VAR NAME="itemnumber" -->); return false;">Delete</a></td><!--/TMPL_IF-->
210
                    <td><a class="delete" href="/cgi-bin/koha/cataloguing/additem.pl?op=delitem&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->" onclick="confirm_deletion(<!-- TMPL_VAR NAME="biblionumber" -->,<!-- TMPL_VAR NAME="itemnumber" -->); return false;">Delete</a></td><!--/TMPL_IF-->
200
                <!-- TMPL_LOOP NAME="item_value" -->
211
                <!-- TMPL_LOOP NAME="item_value" -->
201
                    <td><!-- TMPL_VAR ESCAPE=HTML NAME="field" --></td>
212
                    <td><!-- TMPL_VAR ESCAPE=HTML NAME="field" --></td>
Lines 214-220 function set_to_today(id, force) { Link Here
214
    <!-- TMPL_IF name="opisadd" -->
225
    <!-- TMPL_IF name="opisadd" -->
215
        <h2 id="additema">Add Item</h2>
226
        <h2 id="additema">Add Item</h2>
216
    <!-- TMPL_ELSE -->
227
    <!-- TMPL_ELSE -->
217
        <h2>Edit Item #<!-- TMPL_VAR NAME="itemnumber" --></h2>
228
        <h2 id="edititem">Edit Item #<!-- TMPL_VAR NAME="itemnumber" --></h2>
218
    <!-- /TMPL_IF -->	
229
    <!-- /TMPL_IF -->	
219
	<fieldset class="rows">
230
	<fieldset class="rows">
220
	<ol>
231
	<ol>
221
- 

Return to bug 2534