mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 14:34:28 -04:00
Minor Bug Fix
This commit is contained in:
parent
eb3d9f44a2
commit
f461d68114
@ -164,13 +164,13 @@ FLUSH PRIVILEGES;</pre>
|
||||
$('form button[type="submit"]').click( function(e)
|
||||
{
|
||||
// Check DB Settings
|
||||
if( !db_valid || !testDatabase() ) {
|
||||
if( !db_valid && !testDatabase() ) {
|
||||
alert('Please check your Database Settings.');
|
||||
return false;
|
||||
}
|
||||
|
||||
// If Mail Settings are incorrect, prompt for continue
|
||||
if( !mail_valid || !testMail() ) {
|
||||
if( !mail_valid && !testMail() ) {
|
||||
var check = confirm("The mail settings are incomplete.\nAre you sure you want to continue?");
|
||||
if (!check) {
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user