From: Kyle Huckins Date: Wed, 17 Apr 2019 22:55:49 +0000 (+0000) Subject: lp1538678 Apply Warning Prompt when leaving dirty MARC editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fdpearl%2FLP1538678_no_warning_prompt_signoff;p=working%2FEvergreen.git lp1538678 Apply Warning Prompt when leaving dirty MARC editor - Check for unsaved user input when leaving the Create New MARC Record UI, and warn if it exists. Signed-off-by: Kyle Huckins Signed-off-by: Daniel Pearl Changes to be committed: modified: services/marcedit.js --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js index c41b1d5b37..81ff40d8b9 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js @@ -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)