Lines 711-718
function PopupMARCFieldDoc(field) {
Link Here
|
711 |
if( ! StrAlert ){ |
711 |
if( ! StrAlert ){ |
712 |
var StrWarning = AreFieldsNotOk(false); |
712 |
var StrWarning = AreFieldsNotOk(false); |
713 |
if (StrWarning){ |
713 |
if (StrWarning){ |
714 |
StrWarning += "\n" + _("Are you sure you want to save?"); |
714 |
|
715 |
var r=confirm(StrWarning); |
715 |
// Check important fields |
|
|
716 |
$("#check_errors").html( AreFieldsNotOk(false) ); |
717 |
$('html, body').animate({ scrollTop: 0 }, 'fast'); |
718 |
|
719 |
var r=confirm("Important fields(s) are not filled. Are you sure you want to save?"); |
716 |
if (! r){ |
720 |
if (! r){ |
717 |
return false; |
721 |
return false; |
718 |
} |
722 |
} |
Lines 720-726
function PopupMARCFieldDoc(field) {
Link Here
|
720 |
document.f.submit(); |
724 |
document.f.submit(); |
721 |
return true; |
725 |
return true; |
722 |
} else { |
726 |
} else { |
723 |
$("#check_errors").html( StrAlert ); |
727 |
|
|
|
728 |
// Call AreFieldsNotOk() twice to check both mandatory and important fields |
729 |
$("#check_errors").html( AreFieldsNotOk() + AreFieldsNotOk(false) ); |
724 |
$('html, body').animate({ scrollTop: 0 }, 'fast'); |
730 |
$('html, body').animate({ scrollTop: 0 }, 'fast'); |
725 |
Sticky.hcSticky('refresh'); |
731 |
Sticky.hcSticky('refresh'); |
726 |
return false; |
732 |
return false; |
727 |
- |
|
|