Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/core/darkconsole/behavior-dark-console.js
| Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | function draw_panel() { | ||||
| }; | }; | ||||
| JX.Stratcom.invoke('darkconsole.draw', null, params); | JX.Stratcom.invoke('darkconsole.draw', null, params); | ||||
| } | } | ||||
| function install_shortcut() { | function install_shortcut() { | ||||
| var desc = 'Toggle visibility of DarkConsole.'; | var desc = 'Toggle visibility of DarkConsole.'; | ||||
| new JX.KeyboardShortcut('`', desc) | new JX.KeyboardShortcut('`', desc) | ||||
| .setGroup('global') | |||||
| .setHandler(function() { | .setHandler(function() { | ||||
| statics.visible = !statics.visible; | statics.visible = !statics.visible; | ||||
| if (statics.visible) { | if (statics.visible) { | ||||
| JX.DOM.show(statics.root); | JX.DOM.show(statics.root); | ||||
| if (statics.req.current) { | if (statics.req.current) { | ||||
| draw_request(statics.req.current); | draw_request(statics.req.current); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines | |||||