Another small change to the way styles are assigned to authors in the author list on add authors form.

This commit is contained in:
rjy7 2010-08-19 18:35:03 +00:00
parent 03f2cdcf8c
commit d83460bd36
2 changed files with 4 additions and 5 deletions

View file

@ -9,7 +9,10 @@
margin-bottom: .75em; margin-bottom: .75em;
} }
#authorships li.dd { /* Use class dd rather than jQuery UI's class ui-sortable, so that we can remove
* the class if there's fewer than one author.
*/
#authorships.dd li {
padding-left: 1em; padding-left: 1em;
background: url("../images/sortable_icon.png") no-repeat left center; background: url("../images/sortable_icon.png") no-repeat left center;
cursor: move; cursor: move;

View file

@ -308,8 +308,6 @@ var addAuthorForm = {
return; return;
} }
authorships.addClass('dd');
$('.authorNameWrapper').each(function() { $('.authorNameWrapper').each(function() {
$(this).attr('title', 'Drag and drop to reorder authors'); $(this).attr('title', 'Drag and drop to reorder authors');
}); });
@ -662,8 +660,6 @@ var addAuthorForm = {
authorships.sortable({ disable: true } ); authorships.sortable({ disable: true } );
authorships.removeClass('dd'); authorships.removeClass('dd');
authorship.removeClass('dd');
authorNameWrapper.removeAttr('title'); authorNameWrapper.removeAttr('title');
}, },