Sha256: 2f9e2b440fe08e17b9a35e4aa38ef7768f023cc30bd30946a6e57e4db8e1611b
Contents?: true
Size: 1001 Bytes
Versions: 2
Compression:
Stored size: 1001 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.unset').text(current_url); $('#help_request_current_url.unset').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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curate-0.1.2 | app/assets/javascripts/help_modal.js |
curate-0.1.1 | app/assets/javascripts/help_modal.js |