Lines 744-750
$(document).ready(function(){
Link Here
|
744 |
function Check(){ |
744 |
function Check(){ |
745 |
var StrAlert = AreFieldsNotOk(); |
745 |
var StrAlert = AreFieldsNotOk(); |
746 |
var StrWarning = AreFieldsNotOk( false ); |
746 |
var StrWarning = AreFieldsNotOk( false ); |
747 |
if( !StrAlert && StrWarning ){ |
747 |
if ( $('.plugin-blocks-submit').length > 0 ) { |
|
|
748 |
// This class can be set by framework plugins to block submittal temporarily (e.g. during ajax call) |
749 |
return false; |
750 |
} else if( !StrAlert && StrWarning ) { |
748 |
// Check important fields |
751 |
// Check important fields |
749 |
$("#check_errors").html( StrWarning ); |
752 |
$("#check_errors").html( StrWarning ); |
750 |
$('html, body').animate({ scrollTop: 0 }, 'fast'); |
753 |
$('html, body').animate({ scrollTop: 0 }, 'fast'); |
751 |
- |
|
|