mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
remove use of innerHTML to please Firefox validator (see https://github.com/codemirror/CodeMirror/pull/5313)
This commit is contained in:
parent
e26e70ad4e
commit
d29b40991a
2 changed files with 7 additions and 1 deletions
6
src/lib/codemirror/addon/merge/merge.css
vendored
6
src/lib/codemirror/addon/merge/merge.css
vendored
|
@ -48,6 +48,12 @@
|
||||||
color: #555;
|
color: #555;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
.CodeMirror-merge-scrolllock:after {
|
||||||
|
content: "\21db\00a0\00a0\21da";
|
||||||
|
}
|
||||||
|
.CodeMirror-merge-scrolllock.CodeMirror-merge-scrolllock-enabled:after {
|
||||||
|
content: "\21db\21da";
|
||||||
|
}
|
||||||
|
|
||||||
.CodeMirror-merge-copybuttons-left, .CodeMirror-merge-copybuttons-right {
|
.CodeMirror-merge-copybuttons-left, .CodeMirror-merge-copybuttons-right {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
2
src/lib/codemirror/addon/merge/merge.js
vendored
2
src/lib/codemirror/addon/merge/merge.js
vendored
|
@ -211,7 +211,7 @@
|
||||||
function setScrollLock(dv, val, action) {
|
function setScrollLock(dv, val, action) {
|
||||||
dv.lockScroll = val;
|
dv.lockScroll = val;
|
||||||
if (val && action != false) syncScroll(dv, DIFF_INSERT) && makeConnections(dv);
|
if (val && action != false) syncScroll(dv, DIFF_INSERT) && makeConnections(dv);
|
||||||
dv.lockButton.innerHTML = val ? "\u21db\u21da" : "\u21db \u21da";
|
(val ? CodeMirror.addClass : CodeMirror.rmClass)(dv.lockButton, "CodeMirror-merge-scrolllock-enabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Updating the marks for editor content
|
// Updating the marks for editor content
|
||||||
|
|
Loading…
Reference in a new issue