mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Show/Hide folder list button
This commit is contained in:
parent
5fff5afd16
commit
ba645f5614
20 changed files with 183 additions and 125 deletions
|
|
@ -1093,18 +1093,18 @@ Utils.initLayoutResizer = function (sLeft, sRight, sClientSideKeyName)
|
|||
}
|
||||
},
|
||||
|
||||
// fDisable = function (bDisable) {
|
||||
// if (bDisable)
|
||||
// {
|
||||
// oLeft.resizable('disable');
|
||||
// fSetWidth(5);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// oLeft.resizable('enable');
|
||||
// fSetWidth(RL.local().get(sClientSideKeyName) || 150);
|
||||
// }
|
||||
// },
|
||||
fDisable = function (bDisable) {
|
||||
if (bDisable)
|
||||
{
|
||||
oLeft.resizable('disable');
|
||||
fSetWidth(5);
|
||||
}
|
||||
else
|
||||
{
|
||||
oLeft.resizable('enable');
|
||||
fSetWidth(RL.local().get(sClientSideKeyName) || 170);
|
||||
}
|
||||
},
|
||||
|
||||
fResizeFunction = function (oEvent, oObject) {
|
||||
if (oObject && oObject.size && oObject.size.width)
|
||||
|
|
@ -1125,19 +1125,19 @@ Utils.initLayoutResizer = function (sLeft, sRight, sClientSideKeyName)
|
|||
|
||||
oLeft.resizable({
|
||||
'helper': 'ui-resizable-helper',
|
||||
'minWidth': 120,
|
||||
'minWidth': 170,
|
||||
'maxWidth': 400,
|
||||
'handles': 'e',
|
||||
'stop': fResizeFunction
|
||||
});
|
||||
|
||||
// RL.sub('ssm.mobile-enter', function () {
|
||||
// fDisable(true);
|
||||
// });
|
||||
//
|
||||
// RL.sub('ssm.mobile-leave', function () {
|
||||
// fDisable(false);
|
||||
// });
|
||||
RL.sub('left-panel.off', function () {
|
||||
fDisable(true);
|
||||
});
|
||||
|
||||
RL.sub('left-panel.on', function () {
|
||||
fDisable(false);
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue