Simple click on vertical bar to hide LP left panel - ref #6645

1.9.x
Hubert Borderiou 12 years ago
parent f70c4ed10f
commit 2661c701de
  1. 28
      main/inc/lib/javascript/jquery.lp_minipanel.js

@ -67,21 +67,23 @@ $(document).ready(function() {
var original = $('#content_id').height();
// Adding funcionality
$( "#hide_bar" ).click(function() {
$('#hide_bar table').toggle(function() {
// Adding funcionality
$('#hide_bar table').toggle(function(){
if ($('#hide_bar').position().left >= left_width) {
toogle_minipanel();
}
},
function(){
// Show navigation left zone
$('#learning_path_left_zone').show(50);
$('#learning_path_right_zone').css('marginLeft', left_width + 10 + 'px');
$('#hide_bar table').css('backgroundImage','url(../img/hide0.png)').css('backgroundColor','#EEEEEE');
$('#learning_path_main #control').remove();
$('#content_id').css({ height: original});
}
);
});
function(){
// Show navigation left zone
$('#learning_path_left_zone').show(50);
$('#learning_path_right_zone').css('marginLeft', left_width + 10 + 'px');
$('#hide_bar table').css('backgroundImage','url(../img/hide0.png)').css('backgroundColor','#EEEEEE');
$('#learning_path_main #control').remove();
$('#content_id').css({ height: original});
}
);
});

Loading…
Cancel
Save