[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [9135] more on registration
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [9135] more on registration |
Date: |
Thu, 12 Apr 2012 16:28:57 +0000 |
Revision: 9135
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9135
Author: sigurdne
Date: 2012-04-12 16:28:56 +0000 (Thu, 12 Apr 2012)
Log Message:
-----------
more on registration
Modified Paths:
--------------
trunk/registration/js/portico/ajax.js
Modified: trunk/registration/js/portico/ajax.js
===================================================================
--- trunk/registration/js/portico/ajax.js 2012-04-12 16:24:42 UTC (rev
9134)
+++ trunk/registration/js/portico/ajax.js 2012-04-12 16:28:56 UTC (rev
9135)
@@ -2,12 +2,13 @@
$("#loc1").change(function () {
var loc1 = $(this).val();
+ $("#loc2").html( "<option></option>" );
+ $("#loc3").html( "<option></option>" );
+ $("#loc4").html( "<option></option>" );
+ $("#loc5").html( "<option></option>" );
+
if(!loc1)
{
- $("#loc2").html( "<option></option>" );
- $("#loc3").html( "<option></option>" );
- $("#loc4").html( "<option></option>" );
- $("#loc5").html( "<option></option>" );
return false;
}
var oArgs = {menuaction:'registration.boreg.get_locations',
location_code:loc1};
@@ -43,11 +44,12 @@
$("#loc2").change(function () {
var loc1 = $("#loc1").val();
var loc2 = $(this).val();
+ $("#loc3").html( "<option></option>" );
+ $("#loc4").html( "<option></option>" );
+ $("#loc5").html( "<option></option>" );
+
if(!loc2)
{
- $("#loc3").html( "<option></option>" );
- $("#loc4").html( "<option></option>" );
- $("#loc5").html( "<option></option>" );
return false;
}
@@ -84,15 +86,13 @@
var loc1 = $("#loc1").val();
var loc2 = $("#loc2").val();
var loc3 = $(this).val();
+ $("#loc4").html( "<option></option>" );
+ $("#loc5").html( "<option></option>" );
if(!loc3)
{
- $("#loc4").html( "<option></option>" );
- $("#loc5").html( "<option></option>" );
return false;
}
-
-
var oArgs = {menuaction:'registration.boreg.get_locations',
location_code:loc1 + "-" + loc2 + "-" + loc3};
var requestUrl = phpGWLink('registration/main.php', oArgs,
true);
@@ -127,9 +127,9 @@
var loc2 = $("#loc2").val();
var loc3 = $("#loc3").val();
var loc4 = $(this).val();
+ $("#loc5").html( "<option></option>" );
if(!loc4)
{
- $("#loc5").html( "<option></option>" );
return false;
}
@@ -161,6 +161,5 @@
}
});
});
-
});
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [9135] more on registration,
Sigurd Nes <=