- Check for unsaved user input when leaving the Create New
MARC Record UI, and warn if it exists.
Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Signed-off-by: Daniel Pearl <dpearl@cwmars.org>
Changes to be committed:
modified: services/marcedit.js
function(newVal, oldVal) {
if (newVal && newVal != oldVal && !$scope.opac_iframe) {
$($window).on('beforeunload', function(){
- return egCore.strings.DIRTY_MARC_WARNING;
+ return 'There is unsaved data in this record.'
});
} else {
if (!$scope.opac_iframe)