add option for hiding entire embedded browser toolbar
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 12 Oct 2010 19:34:35 +0000 (19:34 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 12 Oct 2010 19:34:35 +0000 (19:34 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18286 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/rbrowser.xul

index 5099a4c..822aa1f 100644 (file)
                     document.getElementById('browser_print').hidden = false;
                 }
 
+                if (xul_param('show_toolbar')) {
+                    document.getElementById('browser_toolbar').hidden = xul_param('show_toolbar');
+                }
+
                 if (xul_param('title')) {
                     try { document.title = xul_param('title'); } catch(E) {}
                     try { window.title = xul_param('title'); } catch(E) {}
     </popupset>
 
     <vbox flex="1">
-        <hbox>
+        <hbox id="browser_toolbar">
             <button id="back" command="cmd_back" disabled="true" hidden="true"/>
             <button id="reload" command="cmd_reload" disabled="false" hidden="false"/>
             <button id="forward" command="cmd_forward" disabled="true" hidden="true"/>