From 9e40d13a4e2e8abb53871f3817f12bfd376fef8b Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 11 Jul 2005 08:09:42 +0000 Subject: [PATCH] make the splitter hideable git-svn-id: svn://svn.open-ils.org/ILS/trunk@1110 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../chrome/content/evergreen/main/clam_shell.js | 18 +++++++++++++++--- .../chrome/content/evergreen/main/clam_shell.xul | 6 +++++- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.js b/Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.js index 5872d26d89..871162f79e 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.js +++ b/Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.js @@ -2,14 +2,26 @@ sdump('D_TRACE','Loading clam_shell.js\n'); function clam_shell_init(p) { sdump('D_CLAM',"TESTING: clam_shell.js: " + mw.G['main_test_variable'] + '\n'); + p.w.clamshell = get_widget(p.w.document,p.clamshell); if (p) { if (p.horizontal) { - get_widget(p.w.document,p.clamshell).orient = 'horizontal'; + sdump('D_CLAM','Setting horizontal\n'); + p.w.clamshell.orient = 'horizontal'; } else if (p.vertical) { - get_widget(p.w.document,p.clamshell).orient = 'vertical'; + sdump('D_CLAM','Setting vertical\n'); + p.w.clamshell.orient = 'vertical'; } + p.w.splitter = get_widget( p.w.document, p.splitter ); + if (p.hide_splitter) { + sdump('D_CLAM','Hiding splitter\n'); + p.w.splitter.hidden = true; + } else { + sdump('D_CLAM','Showing splitter\n'); + p.w.splitter.hidden = false; + } + } - var nl = get_widget(p.w.document,p.clamshell).getElementsByTagName('deck'); + var nl = p.w.clamshell.getElementsByTagName('deck'); var first_deck = nl[0]; var second_deck = nl[1]; diff --git a/Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.xul b/Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.xul index 0aef53274c..b930bf1599 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.xul +++ b/Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.xul @@ -7,7 +7,11 @@ -- 2.11.0