Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
075aa450
Commit
075aa450
authored
Nov 03, 2016
by
alexpott
Browse files
Issue
#2668596
by borisson_, droplet: No delays update for Machine Name
parent
ef5cb440
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/misc/machine-name.js
View file @
075aa450
...
@@ -71,22 +71,22 @@
...
@@ -71,22 +71,22 @@
xhr
=
null
;
xhr
=
null
;
}
}
// Wait 300 milliseconds since the last event to update
the machine name
// Wait 300 milliseconds
for Ajax request
since the last event to update
// i.e., after the user has stopped typing.
//
the machine name
i.e., after the user has stopped typing.
if
(
timeout
)
{
if
(
timeout
)
{
clearTimeout
(
timeout
);
clearTimeout
(
timeout
);
timeout
=
null
;
timeout
=
null
;
}
}
timeout
=
setTimeout
(
function
(
)
{
if
(
baseValue
.
toLowerCase
()
!==
expected
)
{
if
(
baseValue
.
toLowerCase
()
!==
expected
)
{
timeout
=
setTimeout
(
function
(
)
{
xhr
=
self
.
transliterate
(
baseValue
,
options
).
done
(
function
(
machine
)
{
xhr
=
self
.
transliterate
(
baseValue
,
options
).
done
(
function
(
machine
)
{
self
.
showMachineName
(
machine
.
substr
(
0
,
options
.
maxlength
),
data
);
self
.
showMachineName
(
machine
.
substr
(
0
,
options
.
maxlength
),
data
);
});
});
}
}
,
300
);
else
{
}
self
.
showMachineName
(
expected
,
data
);
else
{
}
self
.
showMachineName
(
expected
,
data
);
}
,
300
);
}
}
}
Object
.
keys
(
settings
.
machineName
).
forEach
(
function
(
source_id
)
{
Object
.
keys
(
settings
.
machineName
).
forEach
(
function
(
source_id
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment