From a4dd476fc2d3ddc16f60141ee496f4b61b456c99 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Wed, 5 Jan 2011 22:40:25 +0000 Subject: [PATCH] Fixed #6183 -- Stopped hiding the help text for SelectFilter widgets. Thanks, acdha. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15150 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/media/js/SelectFilter2.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/django/contrib/admin/media/js/SelectFilter2.js b/django/contrib/admin/media/js/SelectFilter2.js index 5a0344702c..4d3f406a5f 100644 --- a/django/contrib/admin/media/js/SelectFilter2.js +++ b/django/contrib/admin/media/js/SelectFilter2.js @@ -24,10 +24,17 @@ var SelectFilter = { from_box.id += '_from'; // change its ID from_box.className = 'filtered'; - // Remove

, because it just gets in the way. var ps = from_box.parentNode.getElementsByTagName('p'); for (var i=0; i, because it just gets in the way. + from_box.parentNode.removeChild(ps[i]); + } else if (ps[i].className.indexOf("help") != -1) { + // Move help text up to the top so it isn't below the select + // boxes or wrapped off on the side to the right of the add + // button: + from_box.parentNode.insertBefore(ps[i], from_box.parentNode.firstChild); + } } //

or