OasisLMS

Show Filters
function captureBrowserSize() { var width = window.innerWidth || document.body.clientWidth; var height = window.innerHeight || document.body.clientHeight; $('#hfBrowserWidth').val(width); $('#hfBrowserHeight').val(height); }; function closeFancyboxPopupAndRedirectToTargetURL(url) { $.fancybox.close(); window.location = url; }// end of closeFancyboxAndRedirectToTargetURL //for mobile phone the combobox is scrolling the page //with this function its not gonna happen anymore function fixGridSchedulerComboBoxDropDownList() { // For RadGrid - .RadGrid .RadTouchExtender // For RadScheduler - .rsContentScrollArea.RadTouchExtender // For RadComboBox - .rcbScroll // For RadDropDownList - .rddlList var fixed = $telerik.$(".RadGrid .RadTouchExtender, .rsContentScrollArea.RadTouchExtender, .rcbScroll, .rddlList"); fixed.on('touchmove', function (e) { e.preventDefault(); }); } Sys.Application.add_load(fixGridSchedulerComboBoxDropDownList); $(function () { var hfBrowserWidth = $('#hfBrowserWidth'); if (!hfBrowserWidth.val()) { updateCaptureBrowserSize(); } }) function updateCaptureBrowserSize() { console.log('updateCaptureBrowserSize called'); captureBrowserSize(); var width = $('#hfBrowserWidth').val(); var height = $('#hfBrowserHeight').val(); var postData = new Object(); postData.BrowserWidth = width; postData.BrowserHeight = height; console.log('updateCaptureBrowserSize with: ' + JSON.stringify(postData)); $.ajax({ type: 'POST', url: '/Webservices/ClientServices.asmx/UpdateCaptureBrowserSize', contentType: 'application/json; charset=utf-8', dataType: 'json', data: JSON.stringify(postData), success: function (data) { console.log('updateCaptureBrowserSize SUCCESS'); }, failure: function () { console.log('updateCaptureBrowserSize FAILED'); } }); }