Add toggle functionality for users

pull/1/head
John McLear 2011-03-26 15:08:39 +00:00
parent 6d0e50b048
commit 46f1eb4139
1 changed files with 13 additions and 2 deletions

View File

@ -79,8 +79,19 @@ var padeditbar = (function(){
toolbarClick: function(cmd) {
if (self.isEnabled()) {
if (cmd == 'showusers') {
$('#editbar').animate({height:'72px'});
$('#editorcontainerbox').animate({top:'72px'});
// get current height
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') {
padsavedrevs.saveNow();