app/assets/javascripts/extface/devices.js in extface-0.1.5 vs app/assets/javascripts/extface/devices.js in extface-0.1.6

- old
+ new

@@ -1,8 +1,13 @@ // Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. $(document).ready(function() { $('#push').click(function(e) { - $.post($(this).attr('href'), $('#data').val()); + $.ajax({ + type: "POST", + url: $(this).attr('href'), + data: $('#data').val(), + contentType: "application/octet-stream" + }); e.preventDefault(); }); }); \ No newline at end of file