X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/73ef2b8442dc95f8b7279de812c30ac8626d5f39..210e62452e0e9f26f3e006c874b66ac44005d492:/redakcja/static/js/wiki_img/loader_readonly.js?ds=inline diff --git a/redakcja/static/js/wiki_img/loader_readonly.js b/redakcja/static/js/wiki_img/loader_readonly.js index 1ce15b77..b2f574d8 100755 --- a/redakcja/static/js/wiki_img/loader_readonly.js +++ b/redakcja/static/js/wiki_img/loader_readonly.js @@ -8,6 +8,7 @@ if (!window.console) { DEFAULT_PERSPECTIVE = "#MotifsPerspective"; + $(function() { var tabs = $('ol#tabs li'); @@ -37,10 +38,11 @@ $(function() p.destroy(); return false; }); - +/* $(window).resize(function(){ $('iframe').height($(window).height() - $('#tabs').outerHeight() - $('#source-editor .toolbar').outerHeight()); }); + */ $(document).bind('wlapi_document_changed', function(event, doc) { try { @@ -56,8 +58,6 @@ $(function() $('#loading-overlay').fadeOut(); var active_tab = document.location.hash || DEFAULT_PERSPECTIVE; - $(window).resize(); - console.log("Initial tab is:", active_tab) $.wiki.switchToTab(active_tab); },