26 lines
548 B
JavaScript
26 lines
548 B
JavaScript
$(function () {
|
|
|
|
$('#bugReport').on('submit', function (e)
|
|
{
|
|
e.preventDefault();
|
|
|
|
console.log('tet');
|
|
|
|
msg = $('#bugReport #description').val();
|
|
title_ = $('#bugReport #title').val();
|
|
action = $('#bugReport').attr('action');
|
|
|
|
if (msg.length <= 0)
|
|
return false;
|
|
|
|
if (title_.length <= 0)
|
|
return false;
|
|
|
|
$("#bugReport")[0].reset();
|
|
$("#bugReportSuccess").removeClass('hidden');
|
|
|
|
$.post(action, {message: msg, title: title_});
|
|
});
|
|
|
|
});
|