Update configfiles templates

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2015-02-11 13:01:48 +01:00
parent 704a0fce08
commit a45712198b
5 changed files with 58 additions and 23 deletions

View File

@@ -62,6 +62,20 @@ $(document).ready(function() {
disabled: $(this).is(":checked")
}).focus();
});
// 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();
}
});
// Height of divs fix
var snheight = $('#sidenavigation').height();
var mainheight = $('#maincontent').height();