Commit 77e8f309 authored by alexpott's avatar alexpott

Issue #2490146 by droplet: Prevent empty request on machine name transliterate

parent da4f0d21
......@@ -75,7 +75,7 @@
}
Object.keys(settings.machineName).forEach(function (source_id) {
var machine;
var machine = '';
var eventData;
var options = settings.machineName[source_id];
......@@ -101,7 +101,7 @@
if ($target.is(':disabled') || $target.val() !== '') {
machine = $target.val();
}
else {
else if ($source.val() !== '') {
machine = self.transliterate($source.val(), options);
}
// Append the machine name preview to the source field.
......
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