removed debug alerts, default autocomplete widget to 'Text only'
This commit is contained in:
parent
fb91c061a0
commit
63a16a49fd
@ -197,13 +197,13 @@ $(document).ready(function() {
|
|||||||
languages.push($(this).text());
|
languages.push($(this).text());
|
||||||
});
|
});
|
||||||
|
|
||||||
var new_input = $('<input type="text" name="language">').autocomplete(languages);
|
var new_input = $('<input type="text" name="language" value="Text only">')
|
||||||
|
.autocomplete(languages)
|
||||||
|
.click(function() { $(this).val(''); });
|
||||||
$('form.submitform select[name="language"]').replaceWith($(new_input));
|
$('form.submitform select[name="language"]').replaceWith($(new_input));
|
||||||
|
|
||||||
/* Bind a processable value to the input field on submitting */
|
/* Bind a processable value to the input field on submitting */
|
||||||
$('form.submitform').submit(function() {
|
$('form.submitform').submit(function() {
|
||||||
alert(new_input.val());
|
|
||||||
alert(ids[$.inArray(new_input.val(), languages)]);
|
|
||||||
new_input.val(ids[$.inArray(new_input.val(), languages)]);
|
new_input.val(ids[$.inArray(new_input.val(), languages)]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user