Update configfiles templates
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
14
templates/Sparkle/assets/js/main.js
vendored
14
templates/Sparkle/assets/js/main.js
vendored
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user