]> git.evergreen-ils.org Git - Evergreen.git/blob - Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.js
more thorough registering of windows
[Evergreen.git] / Evergreen / staff_client / chrome / content / evergreen / main / clam_shell.js
1 sdump('D_TRACE','Loading clam_shell.js\n');
2
3 function clam_shell_init(p) {
4         dump("TESTING: clam_shell.js: " + mw.G['main_test_variable'] + '\n');
5         if (p) {
6                 if (p.horizontal) {
7                         get_widget(p.d,'ClamShell_main').orient = 'horizontal';
8                 } else if (p.vertical) {
9                         get_widget(p.d,'ClamShell_main').orient = 'vertical';
10                 }
11         }
12 }
13
14 function clam_shell_set_first_deck(d,i) {
15         set_decks(d,{ 'ClamShell_first_deck' : i });
16 }
17
18 function clam_shell_set_second_deck(d,i) {
19         set_decks(d,{ 'ClamShell_second_deck' : i });
20 }