diff --git a/productMods/edit/forms/css/addAuthorsToInformationResource.css b/productMods/edit/forms/css/addAuthorsToInformationResource.css index 90023b88..cc6e39ed 100644 --- a/productMods/edit/forms/css/addAuthorsToInformationResource.css +++ b/productMods/edit/forms/css/addAuthorsToInformationResource.css @@ -9,7 +9,10 @@ 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; background: url("../images/sortable_icon.png") no-repeat left center; cursor: move; diff --git a/productMods/edit/forms/js/addAuthorsToInformationResource.js b/productMods/edit/forms/js/addAuthorsToInformationResource.js index dc5c7064..f7c97a85 100644 --- a/productMods/edit/forms/js/addAuthorsToInformationResource.js +++ b/productMods/edit/forms/js/addAuthorsToInformationResource.js @@ -308,8 +308,6 @@ var addAuthorForm = { return; } - authorships.addClass('dd'); - $('.authorNameWrapper').each(function() { $(this).attr('title', 'Drag and drop to reorder authors'); }); @@ -662,8 +660,6 @@ var addAuthorForm = { authorships.sortable({ disable: true } ); authorships.removeClass('dd'); - - authorship.removeClass('dd'); authorNameWrapper.removeAttr('title'); },