1
0
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:
Lóna Lore
2016-11-04 18:06:36 +01:00
parent c8398db04b
commit 6d96cdbeab
5 changed files with 220 additions and 191 deletions

View File

@@ -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");
});
}
});