X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/bf77ae4a3e1a3593c2fac8c289f177aec15602c9..76a7781f806775f0b29c50ab8937e4dd64807830:/project/static/js/panels.js diff --git a/project/static/js/panels.js b/project/static/js/panels.js index c680331b..0c8761c8 100644 --- a/project/static/js/panels.js +++ b/project/static/js/panels.js @@ -49,7 +49,7 @@ $(function() { // function resizePanels() { // // called on resize // $('.panel').height($(window).height() - $('.panel').position().top); -// $('.panel-contents').height($(window).height() - $('.panel-contents').position().top); +// $('.panel-content').height($(window).height() - $('.panel-contents').position().top); // $('#right-panel-wrap').width($(window).width() - $('#left-panel-wrap').outerWidth()); // } @@ -57,14 +57,15 @@ $(function() { // resizePanels(); // }) - $('#panels').make_hpanel({}); + $('#panels').makeHorizPanel({}); + $('#panels').css('top', ($('#header').outerHeight() ) + 'px'); // $('#left-panel-wrap').bind('resizable:stop', resizePanels) // .resizable({minWidth: 8}); // resizePanels(); $('.panel-toolbar select').change(function() { - loadPanel($('.panel-contents', $(this).parent().parent()), $(this).val()) + loadPanel($('.panel-content', $(this).parent().parent()), $(this).val()) }); // $('#id_folders').change(function() { // $('#images').load('{% url folder_image_ajax %}' + $('#id_folders').val() + '/', function() {