Restyling configfiles with textareas instead of pre

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2015-02-11 19:35:18 +01:00
parent b0279025d0
commit bc80fb71df
4 changed files with 15 additions and 25 deletions

View File

@@ -64,17 +64,7 @@ $(document).ready(function() {
});
// Enable autoselect in configfules
$(".shell, .filecontent").click(function() {
if (window.getSelection) {
selection = window.getSelection();
range = document.createRange();
range.selectNodeContents(this);
selection.removeAllRanges();
selection.addRange(range);
} else if (document.body.createTextRange) {
range = document.body.createTextRange();
range.moveToElementText(this);
range.select();
}
$(this).select();
});
// Height of divs fix
var snheight = $('#sidenavigation').height();