Commit 1a62e3c6 authored by webchick's avatar webchick

Issue #2488884 by pixelmord, tim.plunkett, droplet: Machine name HTML5...

Issue #2488884 by pixelmord, tim.plunkett, droplet: Machine name HTML5 validation fails when field is hidden
parent 4ec324ef
......@@ -34,8 +34,7 @@
function clickEditHandler(e) {
var data =;
......@@ -94,7 +93,7 @@
// Figure out the maximum length for the machine name.
options.maxlength = $target.attr('maxlength');
// Hide the form item container of the machine name form element.
// Determine the initial machine name value. Unless the machine name form
// element is disabled or not empty, the initial default value is based on
// the human-readable form element value.
......@@ -137,6 +136,10 @@
// Initialize machine name preview.
// Add a listener for an invalid event on the machine name input
// to show its container and focus it.
$target.on('invalid', eventData, clickEditHandler);
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