Bugzilla – Attachment 3429 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]
Proposed Patch
0001-Bug-5949-Popup-alert-when-deleting-items-from-basket.patch (text/plain), 3.61 KB, created by
Chris Cormack
on 2011-03-25 00:59:51 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-03-25 00:59:51 UTC
Size:
3.61 KB
patch
obsolete
>From 1865eb4392f352394f21505a26b88e32e5f9cefc 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] 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. >--- > .../prog/en/modules/acqui/neworderempty.tmpl | 35 ++++++++++++++++--- > 1 files changed, 29 insertions(+), 6 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..fd03db4 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 --> >@@ -161,6 +182,8 @@ ff.submit(); > <label for="entertitle" class="required">Title: </label> > <input type="text" id="entertitle" size="50" name="title" value="<!-- TMPL_VAR NAME="title" ESCAPE="html" -->" /> > <!-- /TMPL_IF --> >+ >+ <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!--TMPL_VAR NAME= "biblionumber"-->">Edit Catalog</a></span> > </li> > <li> > <!-- TMPL_IF name="biblionumber" --> >@@ -361,10 +384,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 +397,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