Handle expire resolution js code

This commit is contained in:
emanuele-f 2017-01-25 19:03:27 +01:00 committed by Simone Mainardi
parent 844a34df92
commit cd3c2b68c2
2 changed files with 9 additions and 8 deletions

View file

@ -2623,16 +2623,14 @@ function makeResolutionButtons(fmt_to_data, ctrl_id, fmt, value, extra)
function resol_selector_on_form_submit(event) {
var form = $(this);
]]
if false then
js_init_code = js_init_code..[[
if (event.isDefaultPrevented()) /* isDefaultPrevented is true when the form is invalid */
return false;
]]
end
return false;
js_init_code = js_init_code..[[
resol_selector_finalize(form);
return true;
}
function resol_selector_finalize(form) {
$.each(_resol_inputs, function(i, elem) {
var selected = $(elem).find("input[checked]");
var input = resol_selector_get_input(selected);