LP1282277_LP1282286_Unitialized_Vars_FIx user/ldw/Unintialized_Vars_Fix
authorLiam Whalen <liam.whalen@bc.libraries.coop>
Sun, 13 Jul 2014 17:49:07 +0000 (10:49 -0700)
committerLiam Whalen <liam.whalen@bc.libraries.coop>
Sun, 13 Jul 2014 17:51:07 +0000 (10:51 -0700)
commit4a9c694863cb43d4ead2093f04265fc3eedabc1b
treee743cf4b47a396f5427c5f3e26cf1b5114f57ee1
parent8f330c42e7339b14f84eb6fa659f319b22ec4795
LP1282277_LP1282286_Unitialized_Vars_FIx

The commit to prompt users if they are going to lose data in MARC edit
added some new variables (tabs, and tab) in various files.  If the MARC
edit window does not appear in a tab, then these variables remain
unitialzed and cause problems for MARC edits that appear in their own
window.  By checking for the existence of the variables before MARC
edito loads in its own windown, the problems are resolved.

Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
Open-ILS/xul/staff_client/chrome/content/cat/opac.js
Open-ILS/xul/staff_client/server/cat/marcedit.js