Sha256: ae374b41d1fa8daf76021a696a8c36aa6a8952aaa82b0c1d752825be2432f87a
Contents?: true
Size: 1.53 KB
Versions: 3
Compression:
Stored size: 1.53 KB
Contents
{:uriI"file:///Users/messutied/Projects/portfolio/app/assets/javascripts/portfolio/ajax_checkbox.js?type=application/javascript&pipeline=self&id=86172a4358674de760249784a2185e1ed0a654e431d86b46713d6e7e4ae9d5ea:ET:load_pathI"?/Users/messutied/Projects/portfolio/app/assets/javascripts;F: filenameI"Z/Users/messutied/Projects/portfolio/app/assets/javascripts/portfolio/ajax_checkbox.js;T: nameI"portfolio/ajax_checkbox;T:logical_pathI"$portfolio/ajax_checkbox.self.js;T:content_typeI"application/javascript;T:sourceI"$(function() { $('.ajax_checkbox').change(function() { var el = $(this); var checked = el.is(':checked'); var url = el.data('path'); var field = el.data('field'); var data = {site_project: {}}; data['site_project'][field] = checked; $.ajax({ type: 'patch', dataType: 'json', url: url, data: data, error: function() { alert('Error updating the record'); } }); }); }); ;T: metadata{:dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"hfile-digest:///Users/messutied/Projects/portfolio/app/assets/javascripts/portfolio/ajax_checkbox.js;TT: requiredo;;{ :stubbedo;;{ : linkso;;{ :charsetI" utf-8;F:digest"%q[=&^s7]dk ɜB6/:lengthi:dependencies_digest"%Y䭝uF9:PM|2.ȼ(:idI"E86172a4358674de760249784a2185e1ed0a654e431d86b46713d6e7e4ae9d5ea;F: mtimel+D#kV
Version data entries
3 entries across 3 versions & 1 rubygems