Bugzilla – Attachment 3613 Details for
Bug 5949
Popup alert when deleting orders from a basket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Signed-off patch
0001-SIGNED-OFF-Bug-5949-Popup-alert-when-deleting-items-.patch (text/plain), 3.96 KB, created by
Katrin Fischer
on 2011-04-04 10:31:23 UTC
(
hide
)
Description:
Signed-off patch
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-04-04 10:31:23 UTC
Size:
3.96 KB
patch
obsolete
>From 4a3f78896f9c65eaca406a295d29f2a5b051c9f3 Mon Sep 17 00:00:00 2001 >From: Christophe Croullebois <christophe.croullebois@biblibre.com> >Date: Tue, 24 Aug 2010 11:54:41 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 5949 : Popup alert when deleting items from basket, also change planning value to statistics >Content-Type: text/plain; charset="utf-8" > >(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. >--- > .../prog/en/modules/acqui/neworderempty.tmpl | 38 ++++++++++++++++---- > 1 files changed, 31 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl >index 76f5a3f..9c16a71 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl >@@ -63,8 +63,29 @@ if (ok) { > 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> > </head> >@@ -83,7 +104,7 @@ ff.submit(); > > <h2> > <!-- TMPL_IF name="ordernumber" --> >- Modify order details (line #<!-- TMPL_VAR NAME="ordernumber" -->) >+ Modify order line > <!-- TMPL_ELSE --> > New order > <!-- /TMPL_IF --> >@@ -132,7 +153,10 @@ ff.submit(); > <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform"> > > <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" --> > <input type="hidden" name="existing" value="no" /> > <!-- /TMPL_UNLESS --> >@@ -361,10 +385,10 @@ ff.submit(); > </li> > <li> > <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><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_VAR Name="CGIsort1" --> >@@ -374,7 +398,7 @@ ff.submit(); > <!--/TMPL_IF --> > </li> > <li> >- <label for="sort2">Planning value2: </label> >+ <label for="sort2">Statistic 2: </label> > > <!-- TMPL_IF Name="CGIsort2" --> > <!-- TMPL_VAR Name="CGIsort2" --> >-- >1.7.1 >
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 5949
:
3429
| 3613 |
3690