From 1a8f9cb13c7c096a7b90a1abde7f54da3b57af8a Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Tue, 14 Feb 2012 14:54:43 -0500 Subject: [PATCH] Add default preference for max tabs in staff client. By default, this is set to 0 for unlimited tabs. Including this setting will allow staff client packagers to more easily assign a limit if desired. Some reasons for adding a tab limit include: 1) avoiding memory exhaustion - opening too many tabs can be bad 2) preserving staff sanity - do not have too many tabs open at once Signed-off-by: Ben Shum Signed-off-by: Thomas Berezansky --- Open-ILS/xul/staff_client/defaults/preferences/prefs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/xul/staff_client/defaults/preferences/prefs.js b/Open-ILS/xul/staff_client/defaults/preferences/prefs.js index bf3d5171c4..6352b6e04e 100644 --- a/Open-ILS/xul/staff_client/defaults/preferences/prefs.js +++ b/Open-ILS/xul/staff_client/defaults/preferences/prefs.js @@ -32,3 +32,7 @@ pref("oils.use_tpac", false); // Copy location name first in copy editor pref("oils.copy_editor.copy_location_name_first", false); + +// Number of tabs that can be opened in Staff Client +// NOTE: If the value is set to 0 or less, there is no limit to number of tabs. +pref("open-ils.window_max_tabs", 0); -- 2.11.0