Commit 08f44128 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Check that parameter names cannot be empty

parent 3daacc31
......@@ -404,6 +404,7 @@ function fetch_and_setup_change_listener(fetch_url, write_url, target_div) {
var tooltip_onlyalpha = 'Only alpha-numeric characters and the underscore are allowed';
var tooltip_uniquename = 'Parameter names have to be unique';
var tooltip_nonempty = 'The parameter name must be defined'
// Replace the div with the output of fetch_url
function doFetch() {
......@@ -458,6 +459,11 @@ function fetch_and_setup_change_listener(fetch_url, write_url, target_div) {
inp.tooltip('show');
is_error = true;
}
if (input_object.value === "") {
inp.tooltip({title: tooltip_nonempty});
inp.tooltip('show');
is_error = true;
}
if (!is_error) {
inp.tooltip('destroy');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment