Bug 5949 : Popup alert when deleting items from basket, also change planning value to statistics
(MT #2391) : acqui/neworderempty.pl Multiple fixes in neworderempty.pl, mainly about Modify order line page, link to edit catalog, user can delete items with popup information and can't add items also with popup explanation. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> - changed the the link from 'Edit Catalog' to 'Edit record' (like on result list) - changed position of 'Edit record' to be shown behind the label 'Catalog details' instead of showing behind the Title. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
3603ae6274
commit
1f323c00a1
1 changed files with 31 additions and 7 deletions
|
@ -68,8 +68,29 @@ if (ok) {
|
||||||
ff.submit();
|
ff.submit();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
$(document).ready(function()
|
||||||
|
{
|
||||||
|
//We apply the fonction only for modify option
|
||||||
|
<!--TMPL_IF NAME="quantityrec"-->
|
||||||
|
$('#quantity').blur(function()
|
||||||
|
{
|
||||||
|
// if user decreases the quantity
|
||||||
|
if($(this).val() < <!-- TMPL_VAR name="quantityrec" -->)
|
||||||
|
{
|
||||||
|
alert("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// if user increases the quantity
|
||||||
|
alert("You can't add a new item, please create a new order line");
|
||||||
|
// and we replace the original value
|
||||||
|
$(this).val(<!-- TMPL_VAR name="quantityrec" -->)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
<!-- /TMPL_IF -->
|
||||||
|
});
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -88,7 +109,7 @@ ff.submit();
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
<!-- TMPL_IF name="ordernumber" -->
|
<!-- TMPL_IF name="ordernumber" -->
|
||||||
Modify order details (line #<!-- TMPL_VAR NAME="ordernumber" -->)
|
Modify order line
|
||||||
<!-- TMPL_ELSE -->
|
<!-- TMPL_ELSE -->
|
||||||
New order
|
New order
|
||||||
<!-- /TMPL_IF -->
|
<!-- /TMPL_IF -->
|
||||||
|
@ -137,7 +158,10 @@ ff.submit();
|
||||||
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform">
|
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform">
|
||||||
|
|
||||||
<fieldset class="rows">
|
<fieldset class="rows">
|
||||||
<legend>Catalog details</legend>
|
<legend>
|
||||||
|
Catalog details
|
||||||
|
<span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!--TMPL_VAR NAME= "biblionumber"-->"> Edit record</a></span>
|
||||||
|
</legend>
|
||||||
<!-- TMPL_UNLESS name="existing" -->
|
<!-- TMPL_UNLESS name="existing" -->
|
||||||
<input type="hidden" name="existing" value="no" />
|
<input type="hidden" name="existing" value="no" />
|
||||||
<!-- /TMPL_UNLESS -->
|
<!-- /TMPL_UNLESS -->
|
||||||
|
@ -366,10 +390,10 @@ ff.submit();
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="notes">Notes: </label>
|
<label for="notes">Notes: </label>
|
||||||
<textarea id="notes" cols="30" rows="3" name="notes"><!-- TMPL_VAR NAME="notes" --></textarea>
|
<textarea id="notes" cols="30" rows="3" name="notes"></textarea>
|
||||||
</li>
|
</li>
|
||||||
<li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
|
<li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
|
||||||
<label for="sort1">Planning value1: </label>
|
<label for="sort1">Statistic 1: </label>
|
||||||
|
|
||||||
<!-- TMPL_IF Name="CGIsort1" -->
|
<!-- TMPL_IF Name="CGIsort1" -->
|
||||||
<!-- TMPL_VAR Name="CGIsort1" -->
|
<!-- TMPL_VAR Name="CGIsort1" -->
|
||||||
|
@ -379,7 +403,7 @@ ff.submit();
|
||||||
<!--/TMPL_IF -->
|
<!--/TMPL_IF -->
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="sort2">Planning value2: </label>
|
<label for="sort2">Statistic 2: </label>
|
||||||
|
|
||||||
<!-- TMPL_IF Name="CGIsort2" -->
|
<!-- TMPL_IF Name="CGIsort2" -->
|
||||||
<!-- TMPL_VAR Name="CGIsort2" -->
|
<!-- TMPL_VAR Name="CGIsort2" -->
|
||||||
|
|
Loading…
Reference in a new issue