- Define "There is unsaved data in this record." as a translateable string.
Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Changes to be committed:
modified: Open-ILS/src/templates/staff/cat/share/marcedit_strings.tt2
modified: Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js
Signed-off-by: Bill Erickson <berickxx@gmail.com>
s.CONFIRM_DELETE_BRE_MSG = "[% l('Are you sure you want to delete title record [_1] from the catalog?', '{{id}}') %]";
s.CONFIRM_DELETE_ARE_MSG = "[% l('Are you sure you want to delete authority record [_1] from the catalog?', '{{id}}') %]";
s.ALERT_DELETE_FAILED = "[% l('Could not delete record [_1]: [_2]', '{{id}}', '{{desc}}') %]";
+ s.DIRTY_MARC_WARNING = "[% l('There is unsaved data in this record.') %]"
}]);
</script>
function(newVal, oldVal) {
if (newVal && newVal != oldVal && !$scope.opac_iframe) {
$($window).on('beforeunload', function(){
- return 'There is unsaved data in this record.'
+ return egCore.strings.DIRTY_MARC_WARNING;
});
} else {
if (!$scope.opac_iframe)