X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/80ba576b659d4ee4e19e9f422cef4e1644a03d8d..e6ff1800f3b0c262d1a4d55001c376a1d9e9241a:/project/static/js/panels.js diff --git a/project/static/js/panels.js b/project/static/js/panels.js index 562d82b4..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() {