JSFiddle - React, Tailwind, and code Playground
by Claudius
HTML
<div class="thread_container kc_button_row"><div class="button_row"><input type="button" id="submit_link_save_refresh_keycompetences" value="Save / Refresh" class="button"> <input type="button" id="submit_link_save_kc_gopreview" value="Candidates view" class="button"></div></div>
JavaScript
$("#submit_link_save_kc_gopreview").click(function(e) {
e.preventDefault();
//if (link_submitting($(this), '#' + $(this).attr('id'), $.i18n._('BUTTON_STATUS_SAVING'))) {
$("#action_jobfocus_keycompetences_save").val("gopreview");
$(this).parents().filter("form").trigger("submit");
//};
return false;
});
$("#submit_link_save_refresh_keycompetences").click(function(e) {
alert('hello');
window.location.href = $('#gokcedit').val();
});