lp1538678 Apply Warning Prompt when leaving dirty MARC editor user/dpearl/LP1538678_no_warning_prompt_signoff
authorKyle Huckins <khuckins@catalyte.io>
Wed, 17 Apr 2019 22:55:49 +0000 (22:55 +0000)
committerDan Pearl <dpearl@cwmars.org>
Tue, 21 May 2019 18:49:18 +0000 (14:49 -0400)
- 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

Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js

index c41b1d5..81ff40d 100644 (file)
@@ -708,7 +708,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
                     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)