Sha256: 7c47eb5ed6cc964bc2754760c19cf71b901e561620f3258238c88192b2665aa2
Contents?: true
Size: 989 Bytes
Versions: 24
Compression:
Stored size: 989 Bytes
Contents
$(function(){ var $window = $(window), $modal = $('#ajax-modal'), resolution = screen.width + 'x' + screen.height, viewport = $window.width() + 'x' + $window.height(), current_url = document.location.href; function populateHelpForm(){ // Removing the "NOT" portion $('#help-js strong').remove(); $('#help_request_javascript_enabled').val(1); $('#help-resolution').text(resolution); $('#help_request_resolution').val(resolution); $('#help-viewport').text(viewport); $('#help_request_view_port').val(viewport); $('#help-url').text(current_url); $('#help_request_current_url').val(current_url); } populateHelpForm(); $('.request-help').on('click', function(event){ event.preventDefault(); $('body').modalmanager('loading'); setTimeout(function(){ $modal.load('/help_requests/new #new_help_request', function(){ $modal.modal(); populateHelpForm(); }); }, 1000); }); });
Version data entries
24 entries across 24 versions & 3 rubygems