Commit 8d9a3582 authored by webchick's avatar webchick

Issue #1065626 by Heine, droplet, xjm, jibran: Fixed Machine name not editable...

Issue #1065626 by Heine, droplet, xjm, jibran: Fixed Machine name not editable if every character is replaced.
parent 4f39fca8
......@@ -77,9 +77,11 @@ Drupal.behaviors.machineName = {
$source.bind('keyup.machineName change.machineName', function () {
machine = self.transliterate($(this).val(), options);
// Set the machine name to the transliterated value.
if (machine != options.replace && machine != '') {
$target.val(machine);
$preview.text(machine);
if (machine != '') {
if (machine != options.replace) {
$target.val(machine);
$preview.text(machine);
}
$suffix.show();
}
else {
......
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