mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 19:00:26 +02:00
Custom layout for dashboard with 10 droppable areas.
This commit is contained in:
@@ -154,9 +154,21 @@ $(document).ready(function()
|
||||
$('a[data-toggle-sidebar]').on('click', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
$("#left-panel").toggle(1000);
|
||||
$("#right-panel").toggleClass("col-md-10 col-md-12"); //XXX Control animation direction?
|
||||
|
||||
var $leftPanel = $("#left-panel");
|
||||
var $rightPanel = $("#right-panel");
|
||||
|
||||
if ($rightPanel.hasClass('col-md-12'))
|
||||
{
|
||||
$rightPanel.toggleClass("col-md-10 col-md-12");
|
||||
$leftPanel.toggle(1000);
|
||||
}
|
||||
else
|
||||
{
|
||||
$leftPanel.toggle(1000, function() {
|
||||
$rightPanel.toggleClass("col-md-10 col-md-12");
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user