mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:54:30 -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)
|
$('form button[type="submit"]').click( function(e)
|
||||||
{
|
{
|
||||||
// Check DB Settings
|
// Check DB Settings
|
||||||
if( !db_valid || !testDatabase() ) {
|
if( !db_valid && !testDatabase() ) {
|
||||||
alert('Please check your Database Settings.');
|
alert('Please check your Database Settings.');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If Mail Settings are incorrect, prompt for continue
|
// 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?");
|
var check = confirm("The mail settings are incomplete.\nAre you sure you want to continue?");
|
||||||
if (!check) {
|
if (!check) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user