From: Ben Shum Date: Tue, 14 Feb 2012 19:54:43 +0000 (-0500) Subject: Add default preference for max tabs in staff client. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1a8f9cb13c7c096a7b90a1abde7f54da3b57af8a;p=contrib%2FConifer.git 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 --- 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);