NIHVIVO-646 JS bug fixes and refinements

This commit is contained in:
rjy7 2010-07-02 18:29:08 +00:00
parent 745e98e0fb
commit 63c49c180d
3 changed files with 72 additions and 31 deletions

View file

@ -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'";
}
%>
<ul id="authorships">
<ul id="authorships" <%= ulClass %>>
<%
int rank = 0;
int index = 0;
request.setAttribute("authorshipCount", authorships.size());
for ( Individual authorship : authorships ) {
String rankDatatypeUri = "";
DataPropertyStatement rankStmt = authorship.getDataPropertyStatement(rankPredicateUri);