Make the backend sorting look a little better.

This commit is contained in:
Zachary Doll 2015-01-12 11:49:33 -06:00
parent 148d671739
commit e1c7d2d996

View File

@ -31,6 +31,10 @@ jQuery(document).ready(function($) {
opacity: .6,
tolerance: 'pointer',
update: function() {
// Update the alt classes
$('#Badges tbody tr:nth-child(odd)').removeClass('Alt');
$('#Badges tbody tr:nth-child(even)').addClass('Alt');
$.post(
gdn.url('badge/sort.json'),
{
@ -43,6 +47,13 @@ jQuery(document).ready(function($) {
}
}
);
},
helper: function(e, ui) {
// Preserve width of row
ui.children().each(function() {
$(this).width($(this).width());
});
return ui;
}
});