|
39 | 39 | } |
40 | 40 |
|
41 | 41 | guiLayout = function() { |
42 | | - var selects = document.getElementById("layout"); |
| 42 | + var selects = document.getElementById("gui_layout"); |
43 | 43 | return selects ? selects.options[selects.selectedIndex].text : 'collapsible'; |
44 | 44 | } |
45 | 45 |
|
46 | 46 | setGuiLayout = function(value) { |
47 | | - var selects = document.getElementById("layout"); |
| 47 | + var selects = document.getElementById("gui_layout"); |
48 | 48 | if (!selects) return; |
49 | 49 |
|
50 | 50 | for (var i in selects.options) { |
|
106 | 106 | + "<p><font face='Verdana' size='1px'><a href='https://github.com/linev/jsroot'>JSROOT</a> version <span style='color:green'><b>" + JSROOT.version + "</b></span></font></p>" |
107 | 107 | + '<p> Hierarchy in <a href="h.json">json</a> and <a href="h.xml">xml</a> format</p>' |
108 | 108 | + ' <input type="checkbox" name="monitoring" id="monitoring"/> Monitoring ' |
109 | | - + ' <select style="padding:2px; margin-left:10px; margin-top:5px;" id="layout">' |
| 109 | + + ' <select style="padding:2px; margin-left:10px; margin-top:5px;" id="gui_layout">' |
110 | 110 | + ' <option>simple</option><option>collapsible</option><option>flex</option><option>tabs</option><option>grid 1x2</option><option>grid 2x2</option><option>grid 1x3</option><option>grid 2x3</option><option>grid 3x3</option><option>grid 4x4</option>' |
111 | 111 | + ' </select>'; |
112 | 112 | } else { |
|
136 | 136 | +' onclick="ReadSelectedFile()" type="button" title="Read the Selected File" value="Load"/>' |
137 | 137 | +'<input style="padding:2px; margin-left:10px;"' |
138 | 138 | +' onclick="ResetUI()" type="button" title="Clear All" value="Reset"/>' |
139 | | - +'<select style="padding:2px; margin-left:10px; margin-top:5px;" title="layout kind" id="layout">' |
| 139 | + +'<select style="padding:2px; margin-left:10px; margin-top:5px;" title="layout kind" id="gui_layout">' |
140 | 140 | +' <option>simple</option><option>collapsible</option><option>flex</option><option>tabs</option><option>grid 1x2</option><option>grid 2x2</option><option>grid 1x3</option><option>grid 2x3</option><option>grid 3x3</option><option>grid 4x4</option>' |
141 | 141 | +'</select><br/>'; |
142 | 142 | } else |
143 | 143 | if (noselect === "file") { |
144 | | - guiCode += '<select style="padding:2px; margin-left:5px; margin-top:5px;" title="layout kind" id="layout">' |
| 144 | + guiCode += '<select style="padding:2px; margin-left:5px; margin-top:5px;" title="layout kind" id="gui_layout">' |
145 | 145 | + ' <option>simple</option><option>collapsible</option><option>flex</option><option>tabs</option><option>grid 1x2</option><option>grid 2x2</option><option>grid 1x3</option><option>grid 2x3</option><option>grid 3x3</option><option>grid 4x4</option>' |
146 | 146 | + '</select><br/>'; |
147 | 147 | } |
|
194 | 194 |
|
195 | 195 | // specify display kind every time selection done |
196 | 196 | // will be actually used only for first drawing or after reset |
197 | | - $("#layout").change(function() { |
| 197 | + $("#gui_layout").change(function() { |
198 | 198 | if (hpainter) hpainter.SetDisplay(guiLayout(), drawDivId); |
199 | 199 | }); |
200 | 200 |
|
|
0 commit comments