/* * SW-Container */ function sw_openAjxPage(containerId, action) { sw_openAjxPageWData(containerId, action, ''); } function sw_openAjxPageWData(containerId, action, dataString) { //alert(action); $('#'+containerId).html("       "); $('#'+containerId).addClass("ajax-loading"); $.ajax({ type: "POST", url: action, data: dataString, dataType: 'html', //async: 'true', error: function(a,b,c) { //alert('Error: '+a+b+c+a.status+a.statusText+a.responseText); }, success: function(res) { $('#'+containerId).removeClass("ajax-loading"); $('#'+containerId).html(res); colorsFunctions(); submenus(); hidingMessages(); boxesFunctions(); formsFunctions(); calendarFunctions(); lightboxFunctions(); //fixedExpand(); (function($){ $.scrollbarWidth = function() { if (!$._scrollbarWidth) { var $body = $('body'); var w = $body.css('overflow', 'hidden').width(); $body.css('overflow','scroll'); w -= $body.width(); if (!w) w=$body.width()-$body[0].clientWidth; // IE in standards mode $body.css('overflow',''); $._scrollbarWidth = w; } return $._scrollbarWidth; }; })(jQuery); } }); }