From 322002bc8c4f1b50754d278b91367113362632a8 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 2 Oct 2015 14:19:52 +0000 Subject: [PATCH] webstaff: make overlay record modal wider This patch defines a CSS class, eg-wide-modal, that can be set as the windowClass of 'lg' Boostrap modals and increase their width from a fixed width to 95% of the window. Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/staff/css/style.css.tt2 | 6 ++++++ Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js | 1 + 2 files changed, 7 insertions(+) diff --git a/Open-ILS/src/templates/staff/css/style.css.tt2 b/Open-ILS/src/templates/staff/css/style.css.tt2 index c214bc87e5..0a0ba3b2b2 100644 --- a/Open-ILS/src/templates/staff/css/style.css.tt2 +++ b/Open-ILS/src/templates/staff/css/style.css.tt2 @@ -413,6 +413,12 @@ table.list tr.selected td { /* deprecated? */ } } +/* optional class to make 'lg' Bootstrap modals even wider */ +@media (min-width: 768px) { + .eg-wide-modal .modal-lg { + width: 95%; + } +} [%# vim: ft=css 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 3ac7a5c33c..313e9ab79d 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 @@ -545,6 +545,7 @@ function($scope, $q , $routeParams, bucketSvc, egCore, $window, $modal.open({ templateUrl: './cat/bucket/record/t_merge_records', size: 'lg', + windowClass: 'eg-wide-modal', controller: ['$scope', '$modalInstance', function($scope, $modalInstance) { $scope.records = []; -- 2.43.2