LP#1689325 - require most modals have explicit 'exit' or 'cancel' action inside the...
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Tue, 10 Oct 2017 17:55:59 +0000 (13:55 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 17 Oct 2017 17:41:37 +0000 (13:41 -0400)
Disable the default bahavior of bootstrap modals that lets
the user click outside the modal to dismiss or cancel it.
Similar behavior is not in the XUL, and this will make
unintentional clicks outside the modal less prone to losing
work in said modal.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>

Signed-off-by: Mike Rylander <mrylander@gmail.com>

35 files changed:
Open-ILS/web/js/ui/default/staff/acq/app.js
Open-ILS/web/js/ui/default/staff/admin/local/asset/copy_tag.js
Open-ILS/web/js/ui/default/staff/admin/local/rating/badge.js
Open-ILS/web/js/ui/default/staff/admin/serials/app.js
Open-ILS/web/js/ui/default/staff/admin/serials/pattern_template.js
Open-ILS/web/js/ui/default/staff/admin/server/authority/heading_field.js
Open-ILS/web/js/ui/default/staff/admin/server/config/copy_tag_type.js
Open-ILS/web/js/ui/default/staff/admin/server/config/marc_field.js
Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js
Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
Open-ILS/web/js/ui/default/staff/cat/services/holdings.js
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js
Open-ILS/web/js/ui/default/staff/cat/z3950/app.js
Open-ILS/web/js/ui/default/staff/circ/patron/app.js
Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js
Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js
Open-ILS/web/js/ui/default/staff/circ/services/billing.js
Open-ILS/web/js/ui/default/staff/circ/services/circ.js
Open-ILS/web/js/ui/default/staff/circ/services/holds.js
Open-ILS/web/js/ui/default/staff/circ/services/item.js
Open-ILS/web/js/ui/default/staff/circ/services/patrons.js
Open-ILS/web/js/ui/default/staff/circ/services/transits.js
Open-ILS/web/js/ui/default/staff/circ/transits/list.js
Open-ILS/web/js/ui/default/staff/offline.js
Open-ILS/web/js/ui/default/staff/serials/directives/mfhd_manager.js
Open-ILS/web/js/ui/default/staff/serials/directives/prediction_manager.js
Open-ILS/web/js/ui/default/staff/serials/directives/subscription_manager.js
Open-ILS/web/js/ui/default/staff/serials/services/core.js
Open-ILS/web/js/ui/default/staff/services/mfhd.js
Open-ILS/web/js/ui/default/staff/services/op_change.js
Open-ILS/web/js/ui/default/staff/services/ui.js

index c9ce2f0..92dc114 100644 (file)
@@ -74,6 +74,7 @@ function($scope , $routeParams , $location , $window , $timeout , egCore , $uibM
         $uibModal.open({
             templateUrl: './acq/t_edit_marc_order_record',
             size: 'lg',
+            backdrop: 'static',
             controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
index 3d9ca2c..b1d12f0 100644 (file)
@@ -28,6 +28,7 @@ function($scope , $q , $timeout , $location , $window , $uibModal , egCore , egG
         gridControls = $scope.gridControls;
         $uibModal.open({
             template : templ,
+            backdrop: 'static',
             controller : [
                         '$scope', '$uibModalInstance',
                 function($scope ,  $uibModalInstance) {
index a4d9dcf..577ee5f 100644 (file)
@@ -97,6 +97,7 @@ function($scope , $q , $timeout , $location , $window , $uibModal ,
         var deferred = $q.defer();
         $uibModal.open({
             templateUrl: './admin/local/rating/edit_badge',
+            backdrop: 'static',
             controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
index 81f68e4..6d53f33 100644 (file)
@@ -36,6 +36,7 @@ function(egCore , $q , $uibModal , ngToast ) {
     service.create_or_edit_template = function(id,ou,cb) {
         $uibModal.open({
             template: '<eg-serials-template template_id="' + id + '" owning_lib="' + ou + '"></eg-serials-template>',
+            backdrop: 'static',
             controller:
                    ['sharedScope','$uibModalInstance',
             function(sharedScope , $uibModalInstance ) {
index 1585bf4..fccc867 100644 (file)
@@ -34,6 +34,7 @@ function($scope , $q , $timeout , $location , $window , $uibModal , egCore , egG
         gridControls = $scope.gridControls;
         $uibModal.open({
             template : templ,
+            backdrop: 'static',
             controller : [
                         '$scope', '$uibModalInstance',
                 function($scope ,  $uibModalInstance) {
index 1542219..e7a490e 100644 (file)
@@ -28,6 +28,7 @@ function($scope , $q , $timeout , $location , $window , $uibModal , egCore , egG
         gridControls = $scope.gridControls;
         $uibModal.open({
             template : templ,
+            backdrop: 'static',
             controller : [
                         '$scope', '$uibModalInstance',
                 function($scope ,  $uibModalInstance) {
index 5d367eb..2465722 100644 (file)
@@ -28,6 +28,7 @@ function($scope , $q , $timeout , $location , $window , $uibModal , egCore , egG
         gridControls = $scope.gridControls;
         $uibModal.open({
             template : templ,
+            backdrop: 'static',
             controller : [
                         '$scope', '$uibModalInstance',
                 function($scope ,  $uibModalInstance) {
index fe6f93f..768a5c6 100644 (file)
@@ -36,6 +36,7 @@ function($scope , $q , $timeout , $location , $window , $uibModal , egCore , egG
         gridControls = $scope.gridControls;
         $uibModal.open({
             template : templ,
+            backdrop: 'static',
             controller : [
                         '$scope', '$uibModalInstance',
                 function($scope ,  $uibModalInstance) {
index 151fe91..9b99670 100644 (file)
@@ -278,6 +278,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openCreateBucketDialog = function() {
         $uibModal.open({
             templateUrl: './cat/bucket/share/t_bucket_create',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -302,6 +303,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openEditBucketDialog = function() {
         $uibModal.open({
             templateUrl: './cat/bucket/share/t_bucket_edit',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -328,6 +330,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openDeleteBucketDialog = function() {
         $uibModal.open({
             templateUrl: './cat/bucket/share/t_bucket_delete',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.bucket = function() { return bucketSvc.currentBucket }
@@ -347,6 +350,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openSharedBucketDialog = function() {
         $uibModal.open({
             templateUrl: './cat/bucket/share/t_load_shared',
+            backdrop: 'static',
             controller :
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -536,6 +540,7 @@ function($scope,  $q , $routeParams , $timeout , $window , $uibModal , bucketSvc
 
         return $uibModal.open({
             templateUrl: './cat/catalog/t_request_items',
+            backdrop: 'static',
             animation: true,
             controller:
                    ['$scope','$uibModalInstance',
@@ -699,6 +704,7 @@ function($scope,  $q , $routeParams , $timeout , $window , $uibModal , bucketSvc
     $scope.applyTags = function(copies) {
         return $uibModal.open({
             templateUrl: './cat/bucket/copy/t_apply_tags',
+            backdrop: 'static',
             animation: true,
             controller:
                    ['$scope','$uibModalInstance',
index 10b2610..d7d3cc6 100644 (file)
@@ -309,6 +309,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openCreateBucketDialog = function() {
         $uibModal.open({
             templateUrl: './cat/bucket/share/t_bucket_create',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -333,6 +334,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openEditBucketDialog = function() {
         $uibModal.open({
             templateUrl: './cat/bucket/share/t_bucket_edit',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -360,6 +362,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openDeleteBucketDialog = function() {
         $uibModal.open({
             templateUrl: './cat/bucket/share/t_bucket_delete',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.bucket = function() { return bucketSvc.currentBucket }
@@ -379,6 +382,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openSharedBucketDialog = function() {
         $uibModal.open({
             templateUrl: './cat/bucket/share/t_load_shared',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -401,6 +405,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openExportBucketDialog = function() {
         $uibModal.open({
             templateUrl: './cat/bucket/record/t_bucket_export',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.args = {format : 'XML', encoding : 'UTF-8'}; // defaults
@@ -556,6 +561,7 @@ function($scope,  $q , $routeParams,  bucketSvc,  egCore,  $window,
     $scope.openRecordMergeDialog = function(records) {
         $uibModal.open({
             templateUrl: './cat/bucket/record/t_merge_records',
+            backdrop: 'static',
             size: 'lg',
             windowClass: 'eg-wide-modal',
             controller:
@@ -651,6 +657,7 @@ function($scope,  $q , $routeParams,  bucketSvc,  egCore,  $window,
 
                     $uibModal.open({
                         templateUrl: './cat/bucket/record/t_edit_lead_record',
+                        backdrop: 'static',
                         size: 'lg',
                         controller:
                             ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
@@ -755,6 +762,7 @@ function($scope,  $q , $routeParams,  bucketSvc,  egCore,  $window,
                 if (failures.length) {
                     $uibModal.open({
                         templateUrl: './cat/bucket/record/t_records_not_deleted',
+                        backdrop: 'static',
                         controller :
                             ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                             $scope.failures = failures;
index af2ea77..33af100 100644 (file)
@@ -309,6 +309,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         var recId = $scope.record_id;
         return $uibModal.open({
             templateUrl: './cat/catalog/t_add_to_bucket',
+            backdrop: 'static',
             animation: true,
             size: 'md',
             controller:
@@ -373,6 +374,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         var recId = $scope.record_id;
         return $uibModal.open({
             templateUrl: './share/t_subscription_select_dialog',
+            backdrop: 'static',
             controller: ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
 
@@ -486,6 +488,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
     patron_search_dialog = function() {
         return $uibModal.open({
             templateUrl: './share/t_patron_selector',
+            backdrop: 'static',
             size: 'lg',
             animation: true,
             controller:
@@ -589,6 +592,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
 
         return $uibModal.open({
             templateUrl: './cat/catalog/t_conjoined_selector',
+            backdrop: 'static',
             animation: true,
             controller:
                    ['$scope','$uibModalInstance',
@@ -674,6 +678,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
 
         return $uibModal.open({
             templateUrl: './cat/catalog/t_add_to_bucket',
+            backdrop: 'static',
             animation: true,
             size: 'md',
             controller:
@@ -780,6 +785,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
             if (combined_results.length > 0) {
                 $uibModal.open({
                     template: '<eg-embed-frame url="booking_admin_url" handlers="funcs"></eg-embed-frame>',
+                    backdrop: 'static',
                     animation: true,
                     size: 'md',
                     controller:
@@ -841,6 +847,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
             if (combined_brt.length > 0 || combined_brsrc.length > 0) {
                 $uibModal.open({
                     template: '<eg-embed-frame url="booking_admin_url" handlers="funcs"></eg-embed-frame>',
+                    backdrop: 'static',
                     animation: true,
                     size: 'md',
                     controller:
@@ -953,6 +960,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         angular.forEach(copy_list, function (cp) {
             $uibModal.open({
                 templateUrl: './cat/share/t_replace_barcode',
+                backdrop: 'static',
                 animation: true,
                 controller:
                            ['$scope','$uibModalInstance',
@@ -1278,6 +1286,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
     $scope.markLibAsVolTarget = function() {
         return $uibModal.open({
             templateUrl: './cat/catalog/t_choose_vol_target_lib',
+            backdrop: 'static',
             animation: true,
             controller:
                    ['$scope','$uibModalInstance',
@@ -1557,6 +1566,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
 
             return $uibModal.open({
                 templateUrl: './cat/catalog/t_conjoined_selector',
+                backdrop: 'static',
                 animation: true,
                 controller:
                        ['$scope','$uibModalInstance',
@@ -1839,6 +1849,7 @@ function($scope , $location, egCore, $uibModal) {
         var vqbibrecId = bre.id();
         $uibModal.open({
             templateUrl: './cat/catalog/t_edit_marc_modal',
+            backdrop: 'static',
             size: 'lg',
             controller: ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
index 3f4ec7d..1d97a49 100644 (file)
@@ -332,6 +332,7 @@ function(egCore , $q) {
                         if (key) {
                             $uibModal.open({
                                 templateUrl: './cat/share/t_embedded_volcopy',
+                                backdrop: 'static',
                                 size: 'lg',
                                 windowClass: 'eg-wide-modal',
                                 controller:
index 8717af4..d525a90 100644 (file)
@@ -497,6 +497,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
                     var args = { changed : false };
                     $uibModal.open({
                         templateUrl: './cat/share/t_authority_link_dialog',
+                        backdrop: 'static',
                         size: 'lg',
                         controller: ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                             $scope.controlSet = cs;
index a0ddade..2592be7 100644 (file)
@@ -1673,6 +1673,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
 
         return $uibModal.open({
             templateUrl: './cat/volcopy/t_copy_notes',
+            backdrop: 'static',
             animation: true,
             controller:
                    ['$scope','$uibModalInstance',
@@ -1737,6 +1738,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
 
         return $uibModal.open({
             templateUrl: './cat/volcopy/t_copy_tags',
+            backdrop: 'static',
             animation: true,
             controller:
                    ['$scope','$uibModalInstance',
index b6be459..45ad9d5 100644 (file)
@@ -151,6 +151,7 @@ function($scope , $q , $location , $timeout , $window,  egCore , egGridDataProvi
     $scope.showRawSearchForm = function() {
         $uibModal.open({
             templateUrl: './cat/z3950/t_raw_search',
+            backdrop: 'static',
             size: 'md',
             controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
@@ -254,6 +255,7 @@ function($scope , $q , $location , $timeout , $window,  egCore , egGridDataProvi
         var recId = 0;
         $uibModal.open({
             templateUrl: './cat/z3950/t_marc_edit',
+            backdrop: 'static',
             size: 'lg',
             controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
@@ -280,6 +282,7 @@ function($scope , $q , $location , $timeout , $window,  egCore , egGridDataProvi
         var items = $scope.gridControls.selectedItems();
         $uibModal.open({
             templateUrl: './cat/z3950/t_marc_html',
+            backdrop: 'static',
             size: 'lg',
             controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
@@ -302,6 +305,7 @@ function($scope , $q , $location , $timeout , $window,  egCore , egGridDataProvi
         };
         $uibModal.open({
             templateUrl: './cat/z3950/t_overlay',
+            backdrop: 'static',
             size: 'lg',
             controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
@@ -347,6 +351,7 @@ function($scope , $q , $location , $timeout , $window,  egCore , egGridDataProvi
                 $scope.editOverlayRecord = function() {
                     $uibModal.open({
                         templateUrl: './cat/z3950/t_edit_overlay_record',
+                        backdrop: 'static',
                         size: 'lg',
                         controller:
                             ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
index e7d6430..705a4a7 100644 (file)
@@ -577,6 +577,7 @@ function($scope,  $q,  $routeParams,  $timeout,  $window,  $location,  egCore ,
     $scope.openCreateBucketDialog = function() {
         $uibModal.open({
             templateUrl: './circ/patron/bucket/t_bucket_create',
+            backdrop: 'static',
             controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -891,6 +892,7 @@ function($scope,  $filter , $routeParams , $location , egCore , patronSvc , $uib
     $scope.newNote = function() {
         $uibModal.open({
             templateUrl: './circ/patron/t_new_note_dialog',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance',
             function($scope, $uibModalInstance) {
@@ -1057,6 +1059,7 @@ function($scope,  $routeParams , $q , $window , $timeout,  $location , egCore ,
                 user.card(card);
                 $uibModal.open({
                     templateUrl: './circ/patron/t_move_to_group_dialog',
+                    backdrop: 'static',
                     controller: [
                                 '$scope','$uibModalInstance',
                         function($scope , $uibModalInstance) {
index 4fa6398..0aa98d3 100644 (file)
@@ -537,6 +537,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location,
 
         return $uibModal.open({
             templateUrl : './circ/patron/t_cc_payment_dialog',
+            backdrop: 'static',
             controller : [
                         '$scope','$uibModalInstance',
                 function($scope , $uibModalInstance) {
index 0e8545c..35396f4 100644 (file)
@@ -110,6 +110,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openCreateBucketDialog = function() {
         $uibModal.open({
             templateUrl: './circ/patron/bucket/t_bucket_create',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -134,6 +135,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openEditBucketDialog = function() {
         $uibModal.open({
             templateUrl: './circ/patron/bucket/t_bucket_edit',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -160,6 +162,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openDeleteBucketDialog = function() {
         $uibModal.open({
             templateUrl: './circ/patron/bucket/t_bucket_delete',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.bucket = function() { return bucketSvc.currentBucket }
@@ -179,6 +182,7 @@ function($scope,  $location,  $q,  $timeout,  $uibModal,
     $scope.openSharedBucketDialog = function() {
         $uibModal.open({
             templateUrl: './circ/patron/bucket/t_load_shared',
+            backdrop: 'static',
             controller :
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -292,6 +296,7 @@ function($scope,  $q , $routeParams , $timeout , $window , $uibModal , bucketSvc
 
         $uibModal.open({
             templateUrl: './circ/patron/bucket/t_update_statcats',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.running = false;
@@ -434,6 +439,7 @@ function($scope,  $q , $routeParams , $timeout , $window , $uibModal , bucketSvc
 
         $uibModal.open({
             templateUrl: './circ/patron/bucket/t_changesets',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.running = false;
@@ -559,6 +565,7 @@ function($scope,  $q , $routeParams , $timeout , $window , $uibModal , bucketSvc
 
         $uibModal.open({
             templateUrl: './circ/patron/bucket/t_update_all',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.running = false;
@@ -703,6 +710,7 @@ function($scope,  $q , $routeParams , $timeout , $window , $uibModal , bucketSvc
 
         $uibModal.open({
             templateUrl: './circ/patron/bucket/t_delete_all',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.running = false;
index c863194..153b1b5 100644 (file)
@@ -286,6 +286,7 @@ function($scope,  $q,  $routeParams,  $timeout,  egCore , egUser,  patronSvc , $
 
         $uibModal.open({
             templateUrl : './circ/patron/t_edit_due_date_dialog',
+            backdrop: 'static',
             controller : [
                         '$scope','$uibModalInstance',
                 function($scope , $uibModalInstance) {
@@ -439,6 +440,7 @@ function($scope,  $q,  $routeParams,  $timeout,  egCore , egUser,  patronSvc , $
         return $uibModal.open({
             templateUrl : './circ/patron/t_edit_due_date_dialog',
             templateUrl : './circ/patron/t_renew_with_date_dialog',
+            backdrop: 'static',
             controller : [
                         '$scope','$uibModalInstance',
                 function($scope , $uibModalInstance) {
index 728f176..c190f4c 100644 (file)
@@ -1475,6 +1475,7 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore ,
     $scope.cards_dialog = function() {
         $uibModal.open({
             templateUrl: './circ/patron/t_patron_cards_dialog',
+            backdrop: 'static',
             controller: 
                    ['$scope','$uibModalInstance','cards','perms',
             function($scope , $uibModalInstance , cards , perms) {
@@ -1548,6 +1549,7 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore ,
     $scope.secondary_groups_dialog = function() {
         $uibModal.open({
             templateUrl: './circ/patron/t_patron_groups_dialog',
+            backdrop: 'static',
             controller: 
                    ['$scope','$uibModalInstance','linked_groups','pgt_depth',
             function($scope , $uibModalInstance , linked_groups , pgt_depth) {
index b01f9bf..08acd99 100644 (file)
@@ -114,6 +114,7 @@ function($uibModal , $q , egCore) {
 
         return $uibModal.open({
             templateUrl: './circ/share/t_bill_patron_dialog',
+            backdrop: 'static',
             controller: 
                    ['$scope','$uibModalInstance','$timeout','billingTypes','xact','patron',
             function($scope , $uibModalInstance , $timeout , billingTypes , xact , patron) {
index 3c16f42..5910127 100644 (file)
@@ -706,6 +706,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
         egCore.audio.play('warning.circ.event_override');
         return $uibModal.open({
             templateUrl: './circ/share/t_event_override_dialog',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', 
                 function($scope, $uibModalInstance) {
@@ -744,6 +745,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
         if (angular.isArray(evt)) evt = evt[0];
         return $uibModal.open({
             templateUrl: './circ/share/t_copy_not_avail_dialog',
+            backdrop: 'static',
             controller: 
                        ['$scope','$uibModalInstance','copyStatus',
                 function($scope , $uibModalInstance , copyStatus) {
@@ -784,6 +786,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
 
             return $uibModal.open({
                 templateUrl: './circ/share/t_noncat_dialog',
+                backdrop: 'static',
                 controller: 
                     ['$scope', '$uibModalInstance',
                     function($scope, $uibModalInstance) {
@@ -816,6 +819,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
 
         return $uibModal.open({
             templateUrl: './circ/share/t_precat_dialog',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', 'circMods',
                 function($scope, $uibModalInstance, circMods) {
@@ -884,6 +888,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
         if (angular.isArray(evt)) evt = evt[0];
         return $uibModal.open({
             templateUrl: './circ/share/t_copy_in_transit_dialog',
+            backdrop: 'static',
             controller: 
                        ['$scope','$uibModalInstance','transit',
                 function($scope , $uibModalInstance , transit) {
@@ -952,6 +957,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
         
         return $uibModal.open({
             templateUrl: './circ/share/t_circ_exists_dialog',
+            backdrop: 'static',
             controller: 
                        ['$scope','$uibModalInstance',
                 function($scope , $uibModalInstance) {
@@ -999,6 +1005,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
     service.backdate_dialog = function(circ_ids) {
         return $uibModal.open({
             templateUrl: './circ/share/t_backdate_dialog',
+            backdrop: 'static',
             controller: 
                        ['$scope','$uibModalInstance',
                 function($scope , $uibModalInstance) {
@@ -1088,6 +1095,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
 
         return $uibModal.open({
             templateUrl: './circ/share/t_mark_claims_returned_dialog',
+            backdrop: 'static',
             controller: 
                        ['$scope','$uibModalInstance',
                 function($scope , $uibModalInstance) {
@@ -1518,6 +1526,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
 
             return $uibModal.open({
                 templateUrl: tmpl,
+                backdrop: 'static',
                 controller: [
                             '$scope','$uibModalInstance',
                     function($scope , $uibModalInstance) {
@@ -1562,6 +1571,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
         if (angular.isArray(evt)) evt = evt[0];
         return $uibModal.open({
             templateUrl: './circ/checkin/t_hold_verify',
+            backdrop: 'static',
             controller:
                        ['$scope','$uibModalInstance','params',
                 function($scope , $uibModalInstance , params) {
@@ -1598,6 +1608,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
         egCore.audio.play('warning.circ.bad_barcode');
         return $uibModal.open({
             templateUrl: './circ/share/t_bad_barcode_dialog',
+            backdrop: 'static',
             controller: 
                 ['$scope', '$uibModalInstance', 
                 function($scope, $uibModalInstance) {
@@ -1693,6 +1704,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
             .then(function() {
                 return $uibModal.open({
                     templateUrl: './circ/share/t_barcode_choice_dialog',
+                    backdrop: 'static',
                     controller:
                         ['$scope', '$uibModalInstance',
                         function($scope, $uibModalInstance) {
@@ -1711,6 +1723,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
     service.create_penalty = function(user_id) {
         return $uibModal.open({
             templateUrl: './circ/share/t_new_message_dialog',
+            backdrop: 'static',
             controller: 
                    ['$scope','$uibModalInstance','staffPenalties',
             function($scope , $uibModalInstance , staffPenalties) {
@@ -1751,6 +1764,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
     service.edit_penalty = function(usr_penalty) {
         return $uibModal.open({
             templateUrl: './circ/share/t_new_message_dialog',
+            backdrop: 'static',
             controller: 
                    ['$scope','$uibModalInstance','staffPenalties',
             function($scope , $uibModalInstance , staffPenalties) {
index 53cd39c..b8f67d9 100644 (file)
@@ -61,6 +61,7 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) {
        
         return $uibModal.open({
             templateUrl : './circ/share/t_cancel_hold_dialog',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance', 'cancel_reasons',
                 function($scope, $uibModalInstance, cancel_reasons) {
@@ -115,6 +116,7 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) {
        
         return $uibModal.open({
             templateUrl : './circ/share/t_uncancel_hold_dialog',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
@@ -189,6 +191,7 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) {
         if (!hold_ids.length) return $q.when();
         return $uibModal.open({
             templateUrl : './circ/share/t_hold_copy_quality_dialog',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
@@ -212,6 +215,7 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) {
         if (!hold_ids.length) return $q.when();
         return $uibModal.open({
             templateUrl : './circ/share/t_hold_edit_pickup_lib',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
@@ -244,6 +248,7 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) {
         if (!hold_ids.length) return $q.when();
         return $uibModal.open({
             templateUrl : './circ/share/t_hold_notification_prefs',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance', 'sms_carriers',
                 function($scope, $uibModalInstance, sms_carriers) {
@@ -304,6 +309,7 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) {
 
         return $uibModal.open({
             templateUrl : './circ/share/t_hold_dates',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
@@ -687,6 +693,7 @@ function($window , $location , $timeout , egCore , egHolds , egCirc) {
                 $scope.new_note = function() {
                     return $uibModal.open({
                         templateUrl : './circ/share/t_hold_note_dialog',
+                        backdrop: 'static',
                         controller : 
                             ['$scope', '$uibModalInstance',
                             function($scope, $uibModalInstance) {
@@ -717,6 +724,7 @@ function($window , $location , $timeout , egCore , egHolds , egCirc) {
                 $scope.new_notification = function() {
                     return $uibModal.open({
                         templateUrl : './circ/share/t_hold_notification_dialog',
+                        backdrop: 'static',
                         controller : 
                             ['$scope', '$uibModalInstance',
                             function($scope, $uibModalInstance) {
index 17d3269..44c9aa1 100644 (file)
@@ -177,6 +177,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
 
         return $uibModal.open({
             templateUrl: './cat/catalog/t_add_to_bucket',
+            backdrop: 'static',
             animation: true,
             size: 'md',
             controller:
@@ -275,6 +276,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
             if (combined_results.length > 0) {
                 $uibModal.open({
                     template: '<eg-embed-frame url="booking_admin_url" handlers="funcs"></eg-embed-frame>',
+                    backdrop: 'static',
                     animation: true,
                     size: 'md',
                     controller:
@@ -336,6 +338,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
             if (combined_brt.length > 0 || combined_brsrc.length > 0) {
                 $uibModal.open({
                     template: '<eg-embed-frame url="booking_admin_url" handlers="funcs"></eg-embed-frame>',
+                    backdrop: 'static',
                     animation: true,
                     size: 'md',
                     controller:
@@ -368,6 +371,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
 
         return $uibModal.open({
             templateUrl: './cat/catalog/t_request_items',
+            backdrop: 'static',
             animation: true,
             controller:
                    ['$scope','$uibModalInstance','egUser',
@@ -439,6 +443,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
 
             return $uibModal.open({
                 templateUrl: './cat/catalog/t_conjoined_selector',
+                backdrop: 'static',
                 animation: true,
                 controller:
                        ['$scope','$uibModalInstance',
@@ -689,6 +694,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
         angular.forEach(items, function (cp) {
             $uibModal.open({
                 templateUrl: './cat/share/t_replace_barcode',
+                backdrop: 'static',
                 animation: true,
                 controller:
                            ['$scope','$uibModalInstance',
index 08e5548..17a7c7e 100644 (file)
@@ -10,6 +10,7 @@ function($uibModal , $q , egCore) {
         var deferred = $q.defer();
         $uibModal.open({
             templateUrl: './circ/share/t_merge_patrons',
+            backdrop: 'static',
             size: 'lg',
             windowClass: 'eg-wide-modal',
             controller:
index 001de63..01033cc 100644 (file)
@@ -15,6 +15,7 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) {
        
         return $uibModal.open({
             templateUrl : './circ/share/t_abort_transit_dialog',
+            backdrop: 'static',
             controller : 
                 ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
index 9fb8a97..47789ae 100644 (file)
@@ -97,6 +97,7 @@ function($scope , $q , $routeParams , $window , egCore , egTransits , egGridData
         // FIXME what follows ought to be refactored into a factory
         return $uibModal.open({
             templateUrl: './cat/catalog/t_add_to_bucket',
+            backdrop: 'static',
             animation: true,
             size: 'md',
             controller:
index 8c75f14..bf2212e 100644 (file)
@@ -1782,6 +1782,7 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore ,
     $scope.cards_dialog = function() {
         $uibModal.open({
             templateUrl: './circ/patron/t_patron_cards_dialog',
+            backdrop: 'static',
             controller: 
                    ['$scope','$uibModalInstance','cards','perms',
             function($scope , $uibModalInstance , cards , perms) {
@@ -1858,6 +1859,7 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore ,
     $scope.secondary_groups_dialog = function() {
         $uibModal.open({
             templateUrl: './circ/patron/t_patron_groups_dialog',
+            backdrop: 'static',
             controller: 
                    ['$scope','$uibModalInstance','linked_groups','pgt_depth',
             function($scope , $uibModalInstance , linked_groups , pgt_depth) {
index c754cf8..b34cacc 100644 (file)
@@ -49,6 +49,7 @@ function($scope , $q , egSerialsCoreSvc , egCore , egGridDataProvider ,
         }
         $uibModal.open({
             templateUrl: './share/t_edit_mfhd',
+            backdrop: 'static',
             size: 'lg',
             controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
index d0cd44f..6b5215f 100644 (file)
@@ -115,8 +115,8 @@ function($scope , $q , egSerialsCoreSvc , egCore , egGridDataProvider ,
     $scope.importScapFromBibRecord = function() {
         $uibModal.open({
             templateUrl: './serials/t_select_pattern_dialog',
-            size: 'md',
             backdrop: 'static',
+            size: 'md',
             controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.focusMe = true;
@@ -170,6 +170,7 @@ function($scope , $q , egSerialsCoreSvc , egCore , egGridDataProvider ,
     $scope.openPatternEditorDialog = function(pred, form, viewOnly) {
         $uibModal.open({
             templateUrl: './serials/t_pattern_editor_dialog',
+            backdrop: 'static',
             size: 'lg',
             windowClass: 'eg-wide-modal',
             backdrop: 'static',
index db0e009..d067657 100644 (file)
@@ -328,6 +328,7 @@ function($scope , $q , egSerialsCoreSvc , egCore , egGridDataProvider ,
             ).then(function(list) {
                 $uibModal.open({
                     templateUrl: './serials/t_routing_list',
+                    backdrop: 'static',
                     controller: 'RoutingCtrl',
                     resolve : {
                         rowInfo : function() {
index 5fe4756..ccbcbb5 100644 (file)
@@ -1053,6 +1053,7 @@ function(egCore , orderByFilter , $q , $filter , $uibModal , ngToast , egConfirm
         } else {
             last_promise = current_promise.then(function(){ return $uibModal.open({
                 templateUrl: './serials/t_receive_alerts',
+                backdrop: 'static',
                 controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                     $scope.title = egCore.strings.CONFIRM_CHANGE_ITEMS[mode];
index 488b7cf..1f973cd 100644 (file)
@@ -11,6 +11,7 @@ function($uibModal , egCore) {
     service.open = function(bibId, orgId) {
         return $uibModal.open({
             templateUrl: './share/t_mfhd_create_dialog',
+            backdrop: 'static',
             controller: ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
                     $scope.mfhd_lib = orgId ?
index e7bf1aa..5d06d71 100644 (file)
@@ -18,6 +18,7 @@ function($uibModal, $interpolate, $rootScope, $q, egAuth, egStrings, egNet, ngTo
     service.changeOperator = function(permEvt) {
         return $uibModal.open({
             templateUrl: './share/t_opchange',
+            backdrop: 'static',
             controller:
                 ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
                 $scope.args = {username : '', password : '', type : 'temp'};
index b33358f..b6198db 100644 (file)
@@ -312,6 +312,7 @@ function($timeout , $parse) {
     service.open = function(args) {
         return $uibModal.open({
             templateUrl: './share/t_progress_dialog',
+            /* backdrop: 'static', */ /* allow 'cancelling' of progress dialog */
             controller: ['$scope','$uibModalInstance','egProgressData',
                 function( $scope , $uibModalInstance , egProgressData) {
                     // Once the new modal instance is available, force-
@@ -377,6 +378,7 @@ function($uibModal , $interpolate) {
     service.open = function(message, msg_scope) {
         return $uibModal.open({
             templateUrl: './share/t_alert_dialog',
+            backdrop: 'static',
             controller: ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
                     $scope.message = $interpolate(message)(msg_scope);
@@ -407,6 +409,7 @@ function($uibModal, $interpolate) {
         msg_scope = msg_scope || {};
         return $uibModal.open({
             templateUrl: './share/t_confirm_dialog',
+            backdrop: 'static',
             controller: ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
                     $scope.title = $interpolate(title)(msg_scope);
@@ -449,6 +452,7 @@ function($uibModal, $interpolate) {
     service.open = function(message, promptValue, msg_scope) {
         return $uibModal.open({
             templateUrl: './share/t_prompt_dialog',
+            backdrop: 'static',
             controller: ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
                     $scope.message = $interpolate(message)(msg_scope);
@@ -491,6 +495,7 @@ function($uibModal, $interpolate) {
     service.open = function(message, inputList, selectedValue, msg_scope) {
         return $uibModal.open({
             templateUrl: './share/t_select_dialog',
+            backdrop: 'static',
             controller: ['$scope', '$uibModalInstance',
                 function($scope, $uibModalInstance) {
                     $scope.message = $interpolate(message)(msg_scope);