[Movecommons-commits] r576 - in trunk: src wp-theme
Mario Gallegos
mgallegos at ourproject.org
Sun Nov 4 23:40:07 CET 2012
Author: mgallegos
Date: 2012-11-04 23:40:07 +0100 (Sun, 04 Nov 2012)
New Revision: 576
Modified:
trunk/src/mc-dia-form2.js
trunk/wp-theme/mc2-form.php
Log:
Modified: trunk/src/mc-dia-form2.js
===================================================================
--- trunk/src/mc-dia-form2.js 2012-11-04 22:34:56 UTC (rev 575)
+++ trunk/src/mc-dia-form2.js 2012-11-04 22:40:07 UTC (rev 576)
@@ -6,17 +6,9 @@
var step_two_reached=step_three_reached=step_four_reached=step_five_reached=step_six_reached=false;
- var mc_np = "0",mc_rp = "0",mc_rc = "0",mc_gr = "0",mc_category = "",nameIni = "", urlIni = "",keywordsIni = "";
-
- //original field values
- var field_values = {
- 'ininame' : 'Name of your initiative',
- 'url' : 'Web address',
- 'languages' : 'Language(s)',
- 'keywords' : 'Keywords',
- 'location' : 'Location',
- 'email' : 'email address'
- };
+ var field_values = {'ininame' : 'Name of your initiative','url' : 'Web address','languages' : 'Language(s)','keywords' : 'Keywords','location' : 'Location','email' : 'email address' };
+
+ var mc_np = "0",mc_rp = "0",mc_rc = "0",mc_gr = "0",mc_category = "",nameIni = "", urlIni = "",keywordsIni = "";
function clickCheckBox(id,answer){
if(answer=='yes'){
@@ -924,6 +916,12 @@
conf_click_continue();
imageMapInit();
$j(window).load(function () { doadjustwithsleep(0); });
+ $j('input#ininame').inputfocus({ value: field_values['ininame'] });
+ $j('input#url').inputfocus({ value: field_values['url'] });
+ $j('input#languages').inputfocus({ value: field_values['languages'] });
+ $j('input#keywords').inputfocus({ value: field_values['keywords'] });
+ $j('input#location').inputfocus({ value: field_values['location'] });
+ //$('input#email').inputfocus({ value: field_values['email'] });
});
Modified: trunk/wp-theme/mc2-form.php
===================================================================
--- trunk/wp-theme/mc2-form.php 2012-11-04 22:34:56 UTC (rev 575)
+++ trunk/wp-theme/mc2-form.php 2012-11-04 22:40:07 UTC (rev 576)
@@ -458,8 +458,7 @@
<link rel="stylesheet" type="text/css" href="/mc/0.1/mc-dia-form2.css"/>
-<script type="text/javascript">
-$j(document).ready(function() {
+<script type="text/javascript">
$j('#languages').tagsInput({defaultText:'Add a language'});
$j('#keywords').tagsInput({defaultText:'Add a keyword'});
$j('#infield-donation-website').inFieldLabels();
@@ -477,15 +476,8 @@
$j("ul.qtrans_language_chooser > li").css("display", "inline");
$j("ul.qtrans_language_chooser").css("margin-top", "-25px");
$j("ul.qtrans_language_chooser").css("float", "left");
- $j("ul.qtrans_language_chooser").css("margin-left", "226px");
- $j('input#ininame').inputfocus({ value: field_values['ininame'] });
- $j('input#url').inputfocus({ value: field_values['url'] });
- $j('input#languages').inputfocus({ value: field_values['languages'] });
- $j('input#keywords').inputfocus({ value: field_values['keywords'] });
- $j('input#location').inputfocus({ value: field_values['location'] });
- //$('input#email').inputfocus({ value: field_values['email'] });
+ $j("ul.qtrans_language_chooser").css("margin-left", "226px");
$j('#progress').css('width','0');
$j('#progress_text').html('0% Complete');
-});
</script>
\ No newline at end of file
More information about the Movecommons-commits
mailing list