mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Disable 'region' input when not applicable.
Was sending a null value which wasn't being handled correctly by the VLocation validator.
This commit is contained in:
@@ -347,6 +347,7 @@ r.sponsored = {
|
||||
|
||||
$region.find('option').remove().end().hide()
|
||||
$metro.find('option').remove().end().hide()
|
||||
$region.prop('disabled', true)
|
||||
$metro.prop('disabled', true)
|
||||
|
||||
if (_.has(this.regions, $country.val())) {
|
||||
@@ -357,6 +358,7 @@ r.sponsored = {
|
||||
|
||||
$('<option/>', {value: code, selected: selected}).text(name).appendTo($region)
|
||||
})
|
||||
$region.prop('disabled', false)
|
||||
$region.show()
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user