Author: lukeplant
Date: 2011-06-03 04:54:47 -0700 (Fri, 03 Jun 2011)
New Revision: 16321
Modified:
django/trunk/django/contrib/admin/media/css/base.css
django/trunk/django/contrib/admin/templates/admin/change_list_results.html
Log:
Internet Explorer fixes for admin sorting UI
Modified: django/trunk/django/contrib/admin/media/css/base.css
===================================================================
--- django/trunk/django/contrib/admin/media/css/base.css 2011-06-03
11:54:39 UTC (rev 16320)
+++ django/trunk/django/contrib/admin/media/css/base.css 2011-06-03
11:54:47 UTC (rev 16321)
@@ -329,12 +329,15 @@
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 {
Modified:
django/trunk/django/contrib/admin/templates/admin/change_list_results.html
===================================================================
--- django/trunk/django/contrib/admin/templates/admin/change_list_results.html
2011-06-03 11:54:39 UTC (rev 16320)
+++ django/trunk/django/contrib/admin/templates/admin/change_list_results.html
2011-06-03 11:54:47 UTC (rev 16321)
@@ -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);
//-->
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.