|
Lines 51-56
$(document).ready(function(){
Link Here
|
| 51 |
}); |
51 |
}); |
| 52 |
}); |
52 |
}); |
| 53 |
|
53 |
|
|
|
54 |
$("#addnewitem").click(function(){ |
| 55 |
if ( confirm(_("Are you sure you want to add a new item? Any changes made on this page will be lost.")) ){ |
| 56 |
window.location.href = "/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]"; |
| 57 |
} |
| 58 |
}); |
| 59 |
|
| 54 |
var columns_settings = [% ColumnsSettings.GetColumns( 'cataloguing', 'additem', 'itemst', 'json' ) %] |
60 |
var columns_settings = [% ColumnsSettings.GetColumns( 'cataloguing', 'additem', 'itemst', 'json' ) %] |
| 55 |
// Skip the first column |
61 |
// Skip the first column |
| 56 |
columns_settings.unshift( { cannot_be_toggled: "1" } ); |
62 |
columns_settings.unshift( { cannot_be_toggled: "1" } ); |
|
Lines 338-344
function confirm_deletion() {
Link Here
|
| 338 |
<input type="hidden" name="tag" value="[% itemtagfield %]" /> |
344 |
<input type="hidden" name="tag" value="[% itemtagfield %]" /> |
| 339 |
<input type="hidden" name="subfield" value="[% itemtagsubfield %]" /> |
345 |
<input type="hidden" name="subfield" value="[% itemtagsubfield %]" /> |
| 340 |
<input type="hidden" name="field_value" value="[% itemnumber %]" /> |
346 |
<input type="hidden" name="field_value" value="[% itemnumber %]" /> |
| 341 |
<input type="submit" value="Save changes" onclick="return Check(this.form)" /> |
347 |
<input type="submit" value="Save changes" onclick="return Check(this.form)"> |
|
|
348 |
<input type="button" id="addnewitem" value="Add a new item"> |
| 349 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]">Cancel</a> |
| 342 |
[% END %]</fieldset> |
350 |
[% END %]</fieldset> |
| 343 |
|
351 |
|
| 344 |
[%# Fields for fast cataloging %] |
352 |
[%# Fields for fast cataloging %] |
| 345 |
- |
|
|