Internet Explorer fixes for admin sorting UI

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant 2011-06-03 11:54:47 +00:00
parent 74b1616290
commit 832ca058fe
2 changed files with 12 additions and 2 deletions

View File

@ -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 {

View File

@ -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);
//-->