Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #12959 -- Added alt text to SelectFilter filter button. Thanks,…

… acdha.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 093009bf1f37543d4917f495159c4df97b788700 1 parent f2ae820
@jezdez jezdez authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 django/contrib/admin/media/js/SelectFilter2.js
View
8 django/contrib/admin/media/js/SelectFilter2.js
@@ -47,8 +47,14 @@ var SelectFilter = {
quickElement('h2', selector_available, interpolate(gettext('Available %s'), [field_name]));
var filter_p = quickElement('p', selector_available, '');
filter_p.className = 'selector-filter';
- quickElement('img', filter_p, '', 'src', admin_media_prefix + 'img/admin/selector-search.gif');
+
+ var search_filter_label = quickElement('label', filter_p, '', 'for', field_id + "_input", 'style', 'width:16px;padding:2px');
+
+ var search_selector_img = quickElement('img', search_filter_label, '', 'src', admin_media_prefix + 'img/admin/selector-search.gif');
+ search_selector_img.alt = gettext("Filter");
+
filter_p.appendChild(document.createTextNode(' '));
+
var filter_input = quickElement('input', filter_p, '', 'type', 'text');
filter_input.id = field_id + '_input';
selector_available.appendChild(from_box);
Please sign in to comment.
Something went wrong with that request. Please try again.