Add toggle functionality for users
This commit is contained in:
parent
6d0e50b048
commit
46f1eb4139
|
@ -79,9 +79,20 @@ var padeditbar = (function(){
|
||||||
toolbarClick: function(cmd) {
|
toolbarClick: function(cmd) {
|
||||||
if (self.isEnabled()) {
|
if (self.isEnabled()) {
|
||||||
if (cmd == 'showusers') {
|
if (cmd == 'showusers') {
|
||||||
|
// get current height
|
||||||
|
var editbarheight = $('#editbar').css('height');
|
||||||
|
if (editbarheight == "36px"){
|
||||||
|
// increase the size of the editbar
|
||||||
$('#editbar').animate({height:'72px'});
|
$('#editbar').animate({height:'72px'});
|
||||||
$('#editorcontainerbox').animate({top:'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();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue