mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Add toggle functionality for users
This commit is contained in:
parent
6d0e50b048
commit
46f1eb4139
1 changed files with 13 additions and 2 deletions
|
@ -79,8 +79,19 @@ var padeditbar = (function(){
|
||||||
toolbarClick: function(cmd) {
|
toolbarClick: function(cmd) {
|
||||||
if (self.isEnabled()) {
|
if (self.isEnabled()) {
|
||||||
if (cmd == 'showusers') {
|
if (cmd == 'showusers') {
|
||||||
$('#editbar').animate({height:'72px'});
|
// get current height
|
||||||
$('#editorcontainerbox').animate({top:'72px'});
|
var editbarheight = $('#editbar').css('height');
|
||||||
|
if (editbarheight == "36px"){
|
||||||
|
// increase the size of the editbar
|
||||||
|
$('#editbar').animate({height:'72px'});
|
||||||
|
$('#editorcontainerbox').animate({top:'72px'});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// increase the size of the editbar
|
||||||
|
$('#editbar').animate({height:'36px'});
|
||||||
|
$('#editorcontainerbox').animate({top:'36px'});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (cmd == 'save') {
|
if (cmd == 'save') {
|
||||||
padsavedrevs.saveNow();
|
padsavedrevs.saveNow();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue