diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admin/static/admin/js/SelectBox.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/django/contrib/admin/static/admin/js/SelectBox.js b/django/contrib/admin/static/admin/js/SelectBox.js index f28c861513..db3206ccf5 100644 --- a/django/contrib/admin/static/admin/js/SelectBox.js +++ b/django/contrib/admin/static/admin/js/SelectBox.js @@ -16,7 +16,10 @@ var SelectBox = { for (var i = 0, j = SelectBox.cache[id].length; i < j; i++) { var node = SelectBox.cache[id][i]; if (node.displayed) { - box.options[box.options.length] = new Option(node.text, node.value, false, false); + var new_option = new Option(node.text, node.value, false, false); + // Shows a tooltip when hovering over the option + new_option.setAttribute("title", node.text); + box.options[box.options.length] = new_option; } } }, |
