Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Internet Explorer fixes for admin sorting UI

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 832ca058feecf1e80dcbe7cc38b655f8f4a6ebd4 1 parent 74b1616
Luke Plant spookylukey authored
3  django/contrib/admin/media/css/base.css
View
@@ -329,12 +329,15 @@ table thead th.descending a {
table thead th.sorted a span.text {
display: block;
float: left;
+ cursor: pointer; /* IE needs this */
}
table thead th.sorted a span.sortpos {
display: block;
float: right;
font-size: .6em;
+ text-align: right;
+ cursor: pointer; /* IE needs this */
}
table thead th.sorted a img {
11 django/contrib/admin/templates/admin/change_list_results.html
View
@@ -65,8 +65,12 @@
var popup = $('#sorting-popup-div');
var img = $('#primary-sort-icon');
/* These next lines seems necessary to prime the popup: */
- popup.offset({left:-1000, top:0});
+ popup.offset({left:0, top:-1000});
popup.show();
+ if ($.browser.msie) {
+ // Can't find a way to make IE autosize the div.
+ popup.width(300);
+ }
var popupWidth = popup.width();
popup.hide();
@@ -107,7 +111,10 @@
}
});
- $('#sorting-popup-dismiss').click(hidePopup);
+ $('#sorting-popup-dismiss').click(function(ev) {
+ hidePopup();
+ ev.preventDefault()
+ });
});
})(django.jQuery);
//-->
Please sign in to comment.
Something went wrong with that request. Please try again.