Diff
Modified: trunk/htdocs/system/installer/db_setup.php (3833 => 3834)
--- trunk/htdocs/system/installer/db_setup.php 2009-11-26 01:16:11 UTC (rev 3833)
+++ trunk/htdocs/system/installer/db_setup.php 2009-11-27 02:02:04 UTC (rev 3834)
@@ -191,7 +191,7 @@
<img class="status" src="<?php Site::out_url( 'habari' ); ?>/system/installer/images/ready.png" alt="">
<div class="warning"><?php echo elem_if_set( $form_errors, 'admin_pass'); ?></div>
<div class="help">
- <?php _e('<strong>Password</strong> is the password of the initial user in Habari.'); ?> <a href="#"><?php _e('Learn More...'); ?></a>
+ <?php _e('<strong>Password</strong> is the password of the initial user in Habari. Both password fields must match.'); ?> <a href="#"><?php _e('Learn More...'); ?></a>
</div>
</div>
Modified: trunk/htdocs/system/installer/script.js (3833 => 3834)
--- trunk/htdocs/system/installer/script.js 2009-11-26 01:16:11 UTC (rev 3833)
+++ trunk/htdocs/system/installer/script.js 2009-11-27 02:02:04 UTC (rev 3834)
@@ -57,14 +57,14 @@
pass1 = $('#adminpass1');
pass2 = $('#adminpass2');
- if ( pass1.val().length > 0 && pass2.val().length > 0 && pass1.val() != pass2.val() ) {
- warningtext = 'The passwords do not match, try typing them again.';
- pass1.parents('.inputfield').removeClass('invalid').removeClass('valid').addClass('invalid').find('.warning:hidden').html(warningtext).fadeIn();
- installok = false;
- }
- else {
- pass1.parents('.inputfield').removeClass('invalid').addClass('valid').find('.warning:visible').fadeOut();
- }
+ if ( pass1.val().length > 0 && pass2.val().length > 0 && pass1.val() == pass2.val() ) {
+ pass1.parents('.inputfield').removeClass('invalid').addClass('valid');
+ installok = true;
+ }
+ else {
+ pass1.parents('.inputfield').removeClass('valid').addClass('invalid');
+ installok = false;
+ }
// Check other details have been entered
$('#sitename, #adminuser, #adminemail').each(function(){
@@ -72,7 +72,7 @@
$(this).parents('.inputfield').removeClass('invalid').addClass('valid').find('.warning:visible').fadeOut();
}
else {
- $(this).parents('.inputfield').removeClass('valid');
+ $(this).parents('.inputfield').removeClass('valid').addClass('invalid');
installok = false;
}
});
@@ -245,7 +245,7 @@
installer.sqlite.validDBCredentials();
}
} else {
- $('#databasefile').parents('.inputfield').removeClass('valid');
+ $('#databasefile').parents('.inputfield').removeClass('valid').addClass('invalid');
$('.installstep:eq(1)').removeClass('done');
$('#siteconfiguration, #pluginactivation, #install').removeClass('ready').removeClass('done').children('.options').fadeOut();
$('#siteconfiguration, #pluginactivation').children('.help-me').hide();
Modified: trunk/htdocs/system/installer/style.css (3833 => 3834)
--- trunk/htdocs/system/installer/style.css 2009-11-26 01:16:11 UTC (rev 3833)
+++ trunk/htdocs/system/installer/style.css 2009-11-27 02:02:04 UTC (rev 3834)
@@ -1,7 +1,7 @@
/* @override style.css */
body {
- font-family: Helvetica Neue, Helvetica, Arial, Sans-Serif;
+ font-family: 'Helvetica Neue', Helvetica, Arial, Sans-Serif;
padding: 0;
margin: 0;
}
@@ -161,7 +161,7 @@
}
.invalid .status {
- background: url(images/fail.png);
+ background: url(images/warningsmall.png) no-repeat center;
}
.inputfield .warning {