gnomeweb-wml r6467 - trunk/projects.gnome.org/chronojump
- From: xaviblas svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomeweb-wml r6467 - trunk/projects.gnome.org/chronojump
- Date: Tue, 18 Nov 2008 16:53:04 +0000 (UTC)
Author: xaviblas
Date: Tue Nov 18 16:53:04 2008
New Revision: 6467
URL: http://svn.gnome.org/viewvc/gnomeweb-wml?rev=6467&view=rev
Log:
no decimals on final sum... let's see if works on ie
Modified:
trunk/projects.gnome.org/chronojump/shipping.js
Modified: trunk/projects.gnome.org/chronojump/shipping.js
==============================================================================
--- trunk/projects.gnome.org/chronojump/shipping.js (original)
+++ trunk/projects.gnome.org/chronojump/shipping.js Tue Nov 18 16:53:04 2008
@@ -192,20 +192,23 @@
b = 0;
if (form.quantity_pre.value == 1) {
- b = 1.6;
+// b = 1.6;
+ b = 2;
} else if (form.quantity_pre.value == 2) {
- b = 2.8;
+// b = 2.8;
+ b = 3;
} else if (form.quantity_pre.value == 3) {
b = 4;
} else {
b = 5;
}
-var a2 = a*1;
-var b2 = b*1;
+//var a2 = a*1;
+//var b2 = b*1;
//form.amount.value=(a2+b2); //funciona per tots menys els 1 d'europa i mon (pq surten molts decimals)
-form.amount.value = roundNumber(a2+b2,2)
+//form.amount.value = roundNumber(a2+b2,2) //funciona pero no a alguns ie
+form.amount.value = (a+b)
}
//--------------------------------------------------------------//
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]