NIHVIVO-646 Fixed reordering bug in Javascript

This commit is contained in:
rjy7 2010-07-02 19:34:36 +00:00
parent 63c49c180d
commit 9f86aff342
2 changed files with 7 additions and 10 deletions

View file

@ -285,19 +285,16 @@ SPARQL queries for existing values. --%>
<h2>${title}</h2>
<%
// 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 + "'";
}
%>

View file

@ -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'),