[Movecommons-commits] r627 - trunk/src
Mario Gallegos
mgallegos at ourproject.org
Tue May 28 02:42:44 CEST 2013
Author: mgallegos
Date: 2013-05-28 02:42:44 +0200 (Tue, 28 May 2013)
New Revision: 627
Modified:
trunk/src/mc-dia-form2.js
Log:
Modified: trunk/src/mc-dia-form2.js
===================================================================
--- trunk/src/mc-dia-form2.js 2013-05-27 05:22:35 UTC (rev 626)
+++ trunk/src/mc-dia-form2.js 2013-05-28 00:42:44 UTC (rev 627)
@@ -53,12 +53,16 @@
$('#open-accounting').attr('checked', false);
$("#accept-donations").attr("disabled", "disabled");
$('#accept-donations').attr('checked', false);
+ $('#how-to-help').attr("disabled", "disabled");
+ $('#how-to-help').attr('checked', false);
$j('#non-profit-website').hide();
$j('#infield-non-profit-website').hide();
$j('#open-accounting-website').hide();
$j('#infield-open-accounting-website').hide();
$j('#donation-website').hide();
$j('#infield-donation-website').hide();
+ $j('#how-to-help-website').hide();
+ $j('#infield-how-to-help-website').hide();
$j('#submit_second').click();
}
if(id=='rp'){
@@ -82,6 +86,14 @@
$j('#infield-creative-commons-website').hide();
$j('#other-license-website').hide();
$j('#infield-other-license-website').hide();
+ $j('#organization-structure-website').hide();
+ $j('#infield-organization-structure-website').hide();
+ $j('#internal-procedures-website').hide();
+ $j('#infield-internal-procedures-website').hide();
+ $j('#list-members-website').hide();
+ $j('#infield-list-members-website').hide();
+ $j('#funding-sources-website').hide();
+ $j('#infield-funding-sources-website').hide();
$j('#submit_third').click();
}
if(id=='gr'){
@@ -190,7 +202,16 @@
error=true;
}
else
- $j('#accept-donations').addClass('valid');
+ $j('#accept-donations-website').addClass('valid');
+
+ if($j("#how-to-help").attr("checked"))
+ if($j.trim($j('#how-to-help-website').val())==""){
+ $j('#how-to-help-website').addClass('error');
+ $j('#how-to-help-website').effect("shake", { times:3 }, 50);
+ error=true;
+ }
+ else
+ $j('#how-to-help-website').addClass('valid');
return error;
}
@@ -228,8 +249,44 @@
error=true;
}
else
- $j('#other-license-website').addClass('valid');
+ $j('#other-license-website').addClass('valid');
+ if($j("#organization-structure").attr("checked"))
+ if($j.trim($j('#organization-structure-website').val())==""){
+ $j('#organization-structure-website').addClass('error');
+ $j('#organization-structure-website').effect("shake", { times:3 }, 50);
+ error=true;
+ }
+ else
+ $j('#organization-structure-website').addClass('valid');
+
+ if($j("#internal-procedures").attr("checked"))
+ if($j.trim($j('#internal-procedures-website').val())==""){
+ $j('#internal-procedures-website').addClass('error');
+ $j('#internal-procedures-website').effect("shake", { times:3 }, 50);
+ error=true;
+ }
+ else
+ $j('#internal-procedures-website').addClass('valid');
+
+ if($j("#list-members").attr("checked"))
+ if($j.trim($j('#list-members-website').val())==""){
+ $j('#list-members-website').addClass('error');
+ $j('#list-members-website').effect("shake", { times:3 }, 50);
+ error=true;
+ }
+ else
+ $j('#list-members-website').addClass('valid');
+
+ if($j("#funding-sources").attr("checked"))
+ if($j.trim($j('#funding-sources-website').val())==""){
+ $j('#funding-sources-website').addClass('error');
+ $j('#funding-sources-website').effect("shake", { times:3 }, 50);
+ error=true;
+ }
+ else
+ $j('#funding-sources-website').addClass('valid');
+
return error;
}
@@ -1023,7 +1080,7 @@
$j('#infield-organization-structure-website').hide();
}
});
-
+
$j("#internal-procedures").click(function(){
if($j("#internal-procedures").attr("checked")){
$j('#internal-procedures-website').show();
@@ -1033,7 +1090,7 @@
$j('#internal-procedures-website').hide();
$j('#infield-internal-procedures-website').hide();
}
- });
+ });
$j("#list-members").click(function(){
if($j("#list-members").attr("checked")){
@@ -1041,7 +1098,7 @@
$j('#infield-list-members-website').show();
}
else{
- $j('#list-members').hide();
+ $j('#list-members-website').hide();
$j('#infield-list-members-website').hide();
}
});
More information about the Movecommons-commits
mailing list