mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
colibris: adds toolbar border when editor is scrolling
This commit is contained in:
parent
f650d3a35a
commit
705b6c5e2e
4 changed files with 31 additions and 9 deletions
|
@ -171,6 +171,11 @@ var padeditbar = (function()
|
|||
});
|
||||
|
||||
$('select').niceSelect();
|
||||
|
||||
// When editor is scrolled, we add a class to style the editbar differently
|
||||
$('iframe[name="ace_outer"]').contents().scroll(function() {
|
||||
$('#editbar').toggleClass('editor-scrolled', $(this).scrollTop() > 2);
|
||||
})
|
||||
},
|
||||
isEnabled: function()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue