Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gateone.js: Modified GateOne.Utils.loadStyle() slightly... It will no…
…w set the "media" attribute to "screen" on loaded stylesheets. This is to differentiate them from media="print". gateone.js: Got rid of a trailing comma near the end of the script (where it sets the defaults for GateOne.Net.actions) that was causing IE 8 (and below) to barf and not display the error message that tells the user why Gate One won't work in their terrible browser :). For reference, trailing commas at the end of objects inside of curley braces is perfectly valid JavaScript. IE just sucks. gateone.py: Added support for print style sheets to TerminalWebSocket.get_style() and GateOne.Utils.loadStyle() (in gateone.js). Turns out this was much easier than I thought. Templates: Added a stylesheet for printing (gateone/templates/printing/default.css). It's trivial, really: It just makes sure that when you print out your terminal it will be black-on-white text. Works great from the "Printable" log view (aka "flat" format). Logging Plugin: A few tweaks to the "Printable" view to make it look better when, er, printed. NOTE: The reason I added the new media="print" stylesheet feature is because printing from the "Printable" (flat) log view wasn't working properly when a dark theme was set. So it's really a kind of bug fix :)
- Loading branch information
Showing
7 changed files
with
390 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.