Validate post_process parameter. Ticket #1318
This commit is contained in:
parent
595c24d013
commit
fd106a52fe
|
@ -740,6 +740,14 @@ $(document).ready (function () {
|
|||
}
|
||||
});
|
||||
|
||||
//validate post_process. Change ',' by '.'
|
||||
$("#submit-updbutton").click (function () {
|
||||
validate_post_process();
|
||||
});
|
||||
$("#submit-crtbutton").click (function () {
|
||||
validate_post_process();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// Add a new module macro
|
||||
|
@ -961,6 +969,12 @@ function delete_relation (num_row, id_relation) {
|
|||
}
|
||||
}
|
||||
|
||||
function validate_post_process() {
|
||||
var post_process = $("#text-post_process").val();
|
||||
var new_post_process = post_process.replace(',','.');
|
||||
$("#text-post_process").val(new_post_process);
|
||||
}
|
||||
|
||||
/* End of relationship javascript */
|
||||
|
||||
/* ]]> */
|
||||
|
|
|
@ -100,3 +100,19 @@ $table->colspan['tcp_receive'][1] = 3;
|
|||
push_table_row ($data, 'tcp_receive');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready (function () {
|
||||
$("#submit-upd").click (function () {
|
||||
validate_post_process();
|
||||
});
|
||||
$("#submit-crt").click (function () {
|
||||
validate_post_process();
|
||||
});
|
||||
});
|
||||
|
||||
function validate_post_process() {
|
||||
var post_process = $("#text-post_process").val();
|
||||
var new_post_process = post_process.replace(',','.');
|
||||
$("#text-post_process").val(new_post_process);
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue