summaryrefslogtreecommitdiffstats
path: root/public_html/data
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-09-19 21:46:39 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-09-19 21:46:39 +0200
commit81b274c2b2ae672532bfb9b772dd171ca3c7b754 (patch)
tree709a79b2f79987884585cf4529d682a29ff8cca5 /public_html/data
parent8f9c34117c82aa80d221d3455f45f7255326b352 (diff)
Fix broken linewrap and tabwidth functions
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'public_html/data')
-rw-r--r--public_html/data/js/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public_html/data/js/util.js b/public_html/data/js/util.js
index af3635673..c00bb1785 100644
--- a/public_html/data/js/util.js
+++ b/public_html/data/js/util.js
@@ -38,7 +38,7 @@ define(['jquery'], function () {
value = value || 8;
$('span.tabwidth-value').html(value);
$('.tabwidth-form input').val(value);
- $('.highlight pre').css('tab-size', value);
+ $('.highlight .code-container').css('tab-size', value);
localStorage.setItem('tabwidth', value);
},
setTabwidthFromLocalStorage: function () {
@@ -46,7 +46,7 @@ define(['jquery'], function () {
},
setLineWrap: function (lines_wrapped) {
var whitespaceMode = lines_wrapped ? 'pre-wrap' : 'pre';
- $('.highlight > pre').css('white-space', whitespaceMode);
+ $('.highlight > .code-container').css('white-space', whitespaceMode);
localStorage.setItem('lines_wrapped', lines_wrapped);
},
toggleLineWrap: function() {