From c9453e5aa263f3ccb349e563835ceb69af28dccf Mon Sep 17 00:00:00 2001 From: Sam Link Date: Fri, 6 Oct 2017 11:40:47 -0400 Subject: [PATCH] Web Client: Make Patron Email Clickable The patch is twofold. First, "mailto" has been added to $compileProvider.aHrefSanitizationWhitelist() throughout the project. Second, the patron email in the patron summary has been wrapped in an anchor with ng-href="mailto:{{patron().emaio()}}" to enable the desired functionality. Signed-off-by: Sam Link Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 | 3 ++- Open-ILS/web/js/ui/default/staff/acq/app.js | 2 +- Open-ILS/web/js/ui/default/staff/admin/acq/app.js | 2 +- Open-ILS/web/js/ui/default/staff/admin/actor/app.js | 2 +- Open-ILS/web/js/ui/default/staff/admin/actor/org_unit/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/admin/local/app.js | 3 ++- Open-ILS/web/js/ui/default/staff/admin/serials/app.js | 2 +- Open-ILS/web/js/ui/default/staff/admin/server/app.js | 2 +- Open-ILS/web/js/ui/default/staff/admin/user_perms.js | 2 +- Open-ILS/web/js/ui/default/staff/admin/workstation/app.js | 2 +- Open-ILS/web/js/ui/default/staff/admin/workstation/log.js | 4 ++-- Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/cat/item/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/cat/z3950/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/circ/checkin/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/circ/in_house_use/app.js | 3 +-- Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/circ/patron/pending.js | 4 ++-- Open-ILS/web/js/ui/default/staff/circ/patron/register.js | 4 ++-- Open-ILS/web/js/ui/default/staff/circ/renew/app.js | 5 +++-- Open-ILS/web/js/ui/default/staff/circ/transits/list.js | 4 ++-- Open-ILS/web/js/ui/default/staff/offline.js | 2 +- Open-ILS/web/js/ui/default/staff/reporter/template/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/serials/app.js | 4 ++-- Open-ILS/web/js/ui/default/staff/services/startup.js | 2 +- 30 files changed, 51 insertions(+), 49 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 index 9d55e17a59..b6ce3d43eb 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 @@ -152,7 +152,8 @@
[% l('Email') %]
-
{{patron().email()}}
+ +
{{map.stat_cat().name()}}
diff --git a/Open-ILS/web/js/ui/default/staff/acq/app.js b/Open-ILS/web/js/ui/default/staff/acq/app.js index 92dc114ae7..e97ea29b91 100644 --- a/Open-ILS/web/js/ui/default/staff/acq/app.js +++ b/Open-ILS/web/js/ui/default/staff/acq/app.js @@ -5,7 +5,7 @@ angular.module('egAcquisitions', function($routeProvider , $locationProvider , $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); var resolver = {delay : function(egStartup) {return egStartup.go()}}; var eframe_template = diff --git a/Open-ILS/web/js/ui/default/staff/admin/acq/app.js b/Open-ILS/web/js/ui/default/staff/admin/acq/app.js index 1ff496ad4e..1d96be3561 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/acq/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/acq/app.js @@ -5,7 +5,7 @@ angular.module('egAcqAdmin', function($routeProvider , $locationProvider , $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/admin/acq/edi_attr_set', { diff --git a/Open-ILS/web/js/ui/default/staff/admin/actor/app.js b/Open-ILS/web/js/ui/default/staff/admin/actor/app.js index 8fc04d14ae..859de5509e 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/actor/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/actor/app.js @@ -11,7 +11,7 @@ angular.module('egAdminActor', function($routeProvider , $locationProvider , $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/admin/actor/address_alert', { diff --git a/Open-ILS/web/js/ui/default/staff/admin/actor/org_unit/app.js b/Open-ILS/web/js/ui/default/staff/admin/actor/org_unit/app.js index f27f6713a6..a0b6680dcb 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/actor/org_unit/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/actor/org_unit/app.js @@ -10,8 +10,8 @@ angular.module('egOrgUnitApp', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : ['egStartup', function(egStartup) {return egStartup.go()}]} diff --git a/Open-ILS/web/js/ui/default/staff/admin/local/app.js b/Open-ILS/web/js/ui/default/staff/admin/local/app.js index afceb4da76..f2b286f621 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/local/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/local/app.js @@ -5,7 +5,8 @@ angular.module('egLocalAdmin', function($routeProvider , $locationProvider , $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); + var resolver = {delay : function(egStartup) {return egStartup.go()}}; var eframe_template = diff --git a/Open-ILS/web/js/ui/default/staff/admin/serials/app.js b/Open-ILS/web/js/ui/default/staff/admin/serials/app.js index 6d53f3323c..d697f2a25b 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/serials/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/serials/app.js @@ -5,7 +5,7 @@ angular.module('egSerialsAdmin', function($routeProvider , $locationProvider , $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/admin/serials/templates', { diff --git a/Open-ILS/web/js/ui/default/staff/admin/server/app.js b/Open-ILS/web/js/ui/default/staff/admin/server/app.js index 962f0e520c..979f1777e5 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/server/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/server/app.js @@ -5,7 +5,7 @@ angular.module('egServerAdmin', function($routeProvider , $locationProvider , $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); var resolver = {delay : function(egStartup) {return egStartup.go()}}; var eframe_template = diff --git a/Open-ILS/web/js/ui/default/staff/admin/user_perms.js b/Open-ILS/web/js/ui/default/staff/admin/user_perms.js index 460e8d1ad2..54011a7cca 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/user_perms.js +++ b/Open-ILS/web/js/ui/default/staff/admin/user_perms.js @@ -11,7 +11,7 @@ angular.module('egUserPermsEditor', function($routeProvider , $locationProvider , $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/admin/user_perms', { diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index d3468af3c4..d7af363253 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -11,7 +11,7 @@ angular.module('egWorkstationAdmin', function($routeProvider , $locationProvider , $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/admin/workstation/workstations', { diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/log.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/log.js index 9ef44f7c1b..9161202071 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/log.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/log.js @@ -3,8 +3,8 @@ angular.module('egWorkLogApp', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : ['egStartup', function(egStartup) {return egStartup.go()}]} diff --git a/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js b/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js index 9b99670b43..a51eef475f 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js @@ -17,8 +17,8 @@ angular.module('egCatCopyBuckets', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/cat/bucket/copy/pending/:id', { diff --git a/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js b/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js index d7d3cc61dd..4637f00431 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js @@ -17,8 +17,8 @@ angular.module('egCatRecordBuckets', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/cat/bucket/record/search/:id', { diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js index 90d7fd1b94..63b9c04659 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js @@ -19,8 +19,8 @@ angular.module('egCatalogApp', ['ui.bootstrap','ngRoute','ngLocationUpdate','egC .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : ['egCore','egStartup','egUser', function(egCore, egStartup, egUser) { egCore.env.classLoaders.aous = function() { return egCore.org.settings([ diff --git a/Open-ILS/web/js/ui/default/staff/cat/item/app.js b/Open-ILS/web/js/ui/default/staff/cat/item/app.js index 3624b2a54a..d1e8b5ed7d 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/item/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/item/app.js @@ -13,8 +13,8 @@ angular.module('egItemStatus', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : function(egStartup) {return egStartup.go()}}; // search page shows the list view by default diff --git a/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js b/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js index dbb7ac906d..f6f02da043 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js @@ -7,8 +7,8 @@ angular.module('egPrintLabels', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = { delay : ['egStartup', function(egStartup) { return egStartup.go(); }] }; diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 2592be771a..44007e13fd 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -20,8 +20,8 @@ angular.module('egVolCopy', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = { delay : ['egStartup', function(egStartup) { return egStartup.go(); }] }; diff --git a/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js b/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js index 911e4f6ecb..09bf70f2aa 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js @@ -7,8 +7,8 @@ angular.module('egCatZ3950Search', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : function(egStartup) {return egStartup.go()}}; // search page shows the list view by default diff --git a/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js b/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js index 7be19fb53f..0a71c3f6a4 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js @@ -3,8 +3,8 @@ angular.module('egCheckinApp', ['ngRoute', 'ui.bootstrap', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : ['egStartup', function(egStartup) {return egStartup.go()}]} diff --git a/Open-ILS/web/js/ui/default/staff/circ/in_house_use/app.js b/Open-ILS/web/js/ui/default/staff/circ/in_house_use/app.js index 887e60bfd2..6d0d3522fd 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/in_house_use/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/in_house_use/app.js @@ -3,8 +3,7 @@ angular.module('egInHouseUseApp', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export }) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index eaaf9ba037..3b5e364d3f 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -17,8 +17,8 @@ angular.module('egPatronApp', ['ngRoute', 'ui.bootstrap', 'egUserBucketMod', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + // data loaded at startup which only requires an authtoken goes // here. this allows the requests to be run in parallel instead of // waiting until startup has completed. diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js index 35396f4625..4c3e5ccd39 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js @@ -17,8 +17,8 @@ angular.module('egCatUserBuckets', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/circ/patron/bucket/add/:id', { diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/pending.js b/Open-ILS/web/js/ui/default/staff/circ/patron/pending.js index 9c2bc652c8..0690b3c5fc 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/pending.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/pending.js @@ -3,8 +3,8 @@ angular.module('egPendingPatronsApp', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : ['egStartup', function(egStartup) {return egStartup.go()}]} diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/register.js b/Open-ILS/web/js/ui/default/staff/circ/patron/register.js index 148cad214e..58f0c98de9 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/register.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/register.js @@ -9,8 +9,8 @@ angular.module('egPatronRegApp', ['ui.bootstrap','ngRoute','egCoreMod', 'egUiMod .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : ['egStartup', function(egStartup) {return egStartup.go()}]} diff --git a/Open-ILS/web/js/ui/default/staff/circ/renew/app.js b/Open-ILS/web/js/ui/default/staff/circ/renew/app.js index 23df08d5e8..2c907bd750 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/renew/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/renew/app.js @@ -7,8 +7,9 @@ angular.module('egRenewApp', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - var resolver = {delay : function(egStartup) {return egStartup.go()}}; + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + + var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/circ/renew/renew', { templateUrl: './circ/renew/t_renew', diff --git a/Open-ILS/web/js/ui/default/staff/circ/transits/list.js b/Open-ILS/web/js/ui/default/staff/circ/transits/list.js index 0c13f3ec49..b5b8379d3c 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/transits/list.js +++ b/Open-ILS/web/js/ui/default/staff/circ/transits/list.js @@ -3,8 +3,8 @@ angular.module('egTransitListApp', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : ['egStartup', function(egStartup) {return egStartup.go()}]} diff --git a/Open-ILS/web/js/ui/default/staff/offline.js b/Open-ILS/web/js/ui/default/staff/offline.js index bf2212edb2..c27360bd5b 100644 --- a/Open-ILS/web/js/ui/default/staff/offline.js +++ b/Open-ILS/web/js/ui/default/staff/offline.js @@ -11,7 +11,7 @@ angular.module('egOffline', ['ngRoute', 'ui.bootstrap', 'egCoreMod', 'egUiMod', function($routeProvider , $locationProvider , $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); /** * Route resolvers allow us to run async commands diff --git a/Open-ILS/web/js/ui/default/staff/reporter/template/app.js b/Open-ILS/web/js/ui/default/staff/reporter/template/app.js index 272a0eb12a..69c433f896 100644 --- a/Open-ILS/web/js/ui/default/staff/reporter/template/app.js +++ b/Open-ILS/web/js/ui/default/staff/reporter/template/app.js @@ -14,8 +14,8 @@ angular.module('egReporter', .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/reporter/template/clone/:folder/:id', { diff --git a/Open-ILS/web/js/ui/default/staff/serials/app.js b/Open-ILS/web/js/ui/default/staff/serials/app.js index 31f925e78c..a0046254eb 100644 --- a/Open-ILS/web/js/ui/default/staff/serials/app.js +++ b/Open-ILS/web/js/ui/default/staff/serials/app.js @@ -11,8 +11,8 @@ angular.module('egSerialsApp') .config(function($routeProvider, $locationProvider, $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); // grid export - + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); // grid export + var resolver = {delay : function(egStartup) {return egStartup.go()}}; $routeProvider.when('/serials/:bib_id', { diff --git a/Open-ILS/web/js/ui/default/staff/services/startup.js b/Open-ILS/web/js/ui/default/staff/services/startup.js index 07e1f8c0fe..7792eb2036 100644 --- a/Open-ILS/web/js/ui/default/staff/services/startup.js +++ b/Open-ILS/web/js/ui/default/staff/services/startup.js @@ -16,7 +16,7 @@ angular.module('egCoreMod') .config(['$locationProvider','$compileProvider', function($locationProvider , $compileProvider) { $locationProvider.html5Mode(true); - $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|blob):/); + $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|blob):/); }]) .factory('egStartup', -- 2.11.0