[Koha-patches] [PATCH] Bug 4920 - neworderempty.tmpl shouldn't call calcNeworderTotal() onload

Dobrica Pavlinusic dpavlin at rot13.org
Wed Jun 30 13:53:08 CEST 2010


Currently, modifying existing orders will recalculate values if exchange rate
has changed, which destroys previous data (our use case is just to modify
Planning value fields).

Since fileds also have onChange event which also triggers caclNeworderTotal,
onload event seems redundant.
---
 .../prog/en/modules/acqui/neworderempty.tmpl       |    2 +-
 1 files changed, 1 insertions(+), 1 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 603d517..3b6dae7 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
@@ -52,7 +52,7 @@ ff.submit();
 //]]>
 </script>
 </head>
-<body onload="calcNeworderTotal()">
+<body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
-- 
1.5.6.5



More information about the Koha-patches mailing list