This basically commits the transpiled CoffeeScript JS (with minor cleanup) and removes coffee build support. A tiny amount of support for xblocks exists, because external users may have xblocks with coffee. But no coffee in our tree anyway.
24 lines
669 B
JavaScript
24 lines
669 B
JavaScript
// Once generated by CoffeeScript 1.9.3, but now lives as pure JS
|
|
/* eslint-disable */
|
|
(function() {
|
|
this.FeedbackForm = (function() {
|
|
function FeedbackForm() {
|
|
$('#feedback_button').click(function() {
|
|
var data;
|
|
data = {
|
|
subject: $('#feedback_subject').val(),
|
|
message: $('#feedback_message').val(),
|
|
url: window.location.href
|
|
};
|
|
return $.postWithPrefix('/send_feedback', data, function() {
|
|
return $('#feedback_div').html('Feedback submitted. Thank you'); // xss-lint: disable=javascript-jquery-html
|
|
}, 'json');
|
|
});
|
|
}
|
|
|
|
return FeedbackForm;
|
|
|
|
})();
|
|
|
|
}).call(this);
|