mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Removed sidebar-code since the sidebar got removed in EPL, there is only the stickychat which is not affected by this.
This commit is contained in:
parent
e6454af5ed
commit
f2cd9e3adc
3 changed files with 0 additions and 44 deletions
|
@ -963,9 +963,6 @@ function handleClientReady(client, message)
|
||||||
"serverTimestamp": new Date().getTime(),
|
"serverTimestamp": new Date().getTime(),
|
||||||
"globalPadId": message.padId,
|
"globalPadId": message.padId,
|
||||||
"userId": author,
|
"userId": author,
|
||||||
"cookiePrefsToSet": {
|
|
||||||
"hideSidebar": false
|
|
||||||
},
|
|
||||||
"abiwordAvailable": settings.abiwordAvailable(),
|
"abiwordAvailable": settings.abiwordAvailable(),
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"plugins": plugins.plugins,
|
"plugins": plugins.plugins,
|
||||||
|
|
|
@ -460,16 +460,6 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
|
||||||
|
|
||||||
if (clientVars)
|
if (clientVars)
|
||||||
{
|
{
|
||||||
if (clientVars.disableRightBar)
|
|
||||||
{
|
|
||||||
$("#rightbars").css('display', 'none');
|
|
||||||
$('#padmain').css('width', 'auto');
|
|
||||||
$("#padmain").css('width', '860px');
|
|
||||||
$("#revision").css('position', "absolute");
|
|
||||||
$("#revision").css('right', "20px");
|
|
||||||
$("#revision").css('top', "20px");
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#timeslider").show();
|
$("#timeslider").show();
|
||||||
|
|
||||||
var startPos = clientVars.collab_client_vars.rev;
|
var startPos = clientVars.collab_client_vars.rev;
|
||||||
|
|
|
@ -462,10 +462,6 @@ var pad = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// order of inits is important here:
|
// order of inits is important here:
|
||||||
padcookie.init(clientVars.cookiePrefsToSet, this);
|
|
||||||
|
|
||||||
// $("#sidebarcheck").click(pad.togglewSidebar);
|
|
||||||
|
|
||||||
pad.myUserInfo = {
|
pad.myUserInfo = {
|
||||||
userId: clientVars.userId,
|
userId: clientVars.userId,
|
||||||
name: clientVars.userName,
|
name: clientVars.userName,
|
||||||
|
@ -745,28 +741,10 @@ var pad = {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// pad.determineSidebarVisibility(isConnected && !isInitialConnect);
|
|
||||||
pad.determineChatVisibility(isConnected && !isInitialConnect);
|
pad.determineChatVisibility(isConnected && !isInitialConnect);
|
||||||
pad.determineAuthorshipColorsVisibility();
|
pad.determineAuthorshipColorsVisibility();
|
||||||
|
|
||||||
},
|
},
|
||||||
/* determineSidebarVisibility: function(asNowConnectedFeedback)
|
|
||||||
{
|
|
||||||
if (pad.isFullyConnected())
|
|
||||||
{
|
|
||||||
var setSidebarVisibility = padutils.getCancellableAction("set-sidebar-visibility", function()
|
|
||||||
{
|
|
||||||
// $("body").toggleClass('hidesidebar', !! padcookie.getPref('hideSidebar'));
|
|
||||||
});
|
|
||||||
window.setTimeout(setSidebarVisibility, asNowConnectedFeedback ? 3000 : 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
padutils.cancelActions("set-sidebar-visibility");
|
|
||||||
$("body").removeClass('hidesidebar');
|
|
||||||
}
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
determineChatVisibility: function(asNowConnectedFeedback){
|
determineChatVisibility: function(asNowConnectedFeedback){
|
||||||
var chatVisCookie = padcookie.getPref('chatAlwaysVisible');
|
var chatVisCookie = padcookie.getPref('chatAlwaysVisible');
|
||||||
if(chatVisCookie){ // if the cookie is set for chat always visible
|
if(chatVisCookie){ // if the cookie is set for chat always visible
|
||||||
|
@ -828,15 +806,6 @@ var pad = {
|
||||||
$('form#reconnectform input.missedChanges').val(JSON.stringify(pad.collabClient.getMissedChanges()));
|
$('form#reconnectform input.missedChanges').val(JSON.stringify(pad.collabClient.getMissedChanges()));
|
||||||
$('form#reconnectform').submit();
|
$('form#reconnectform').submit();
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
toggleSidebar: function()
|
|
||||||
{
|
|
||||||
var newValue = !padcookie.getPref('hideSidebar');
|
|
||||||
padcookie.setPref('hideSidebar', newValue);
|
|
||||||
$("#sidebarcheck").toggleClass('sidebarchecked', !newValue).toggleClass('sidebarunchecked', !! newValue);
|
|
||||||
pad.determineSidebarVisibility();
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
// this is called from code put into a frame from the server:
|
// this is called from code put into a frame from the server:
|
||||||
handleImportExportFrameCall: function(callName, varargs)
|
handleImportExportFrameCall: function(callName, varargs)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue