diff --git a/productMods/edit/forms/addAuthorsToInformationResource.jsp b/productMods/edit/forms/addAuthorsToInformationResource.jsp index bc950f28..086ca4b5 100644 --- a/productMods/edit/forms/addAuthorsToInformationResource.jsp +++ b/productMods/edit/forms/addAuthorsToInformationResource.jsp @@ -285,19 +285,16 @@ SPARQL queries for existing values. --%>

${title}

<% - // Try this in order to get the new author hightlighted after page reload. - // If we do an ajax submit, we won't need it. - //String processedForm = (String) vreq.getAttribute("processedForm"); - //String ulClass = ""; - //if (processedForm != null && processedForm.equals("true")) { - // ulClass = "class='processedSubmission'"; - //} - //System.out.println(vreq.getAttribute("entToReturnTo")); String ulClass = ""; + if (authorships.size() > 1) { // This class triggers application of dd styles. Don't wait for js to add // the ui-sortable class, because then the page flashes as the styles are updated. - ulClass = "class='dd'"; + ulClass = "dd"; + } + + if (! "".equals(ulClass)) { + ulClass = "class='" + ulClass + "'"; } %> diff --git a/productMods/edit/forms/js/addAuthorsToInformationResource.js b/productMods/edit/forms/js/addAuthorsToInformationResource.js index 064d2501..70373397 100644 --- a/productMods/edit/forms/js/addAuthorsToInformationResource.js +++ b/productMods/edit/forms/js/addAuthorsToInformationResource.js @@ -111,7 +111,7 @@ var addAuthorForm = { context: $(this), // context for callback complete: function(request, status) { var authorship = $(this).parents('.authorship'), - nextAuthorships = authorship.next(), + nextAuthorships = authorship.nextAll(), rank; // author = $(this).siblings('span.author'), // authorLink = author.children('a.authorLink'),