From 63c49c180dad0b51998d783007885f9decd2bd74 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Fri, 2 Jul 2010 18:29:08 +0000 Subject: [PATCH] NIHVIVO-646 JS bug fixes and refinements --- .../forms/addAuthorsToInformationResource.jsp | 10 +- .../css/addAuthorsToInformationResource.css | 1 + .../js/addAuthorsToInformationResource.js | 92 +++++++++++++------ 3 files changed, 72 insertions(+), 31 deletions(-) diff --git a/productMods/edit/forms/addAuthorsToInformationResource.jsp b/productMods/edit/forms/addAuthorsToInformationResource.jsp index 102126e7..bc950f28 100644 --- a/productMods/edit/forms/addAuthorsToInformationResource.jsp +++ b/productMods/edit/forms/addAuthorsToInformationResource.jsp @@ -293,14 +293,20 @@ SPARQL queries for existing values. --%> // 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'"; + } %> -