Merge r1045 from http://svn.mannlib.cornell.edu/svn/vivo/branches/rel-1.1-maint
This commit is contained in:
parent
aa7a7ab6c9
commit
302575251f
4 changed files with 27 additions and 11 deletions
|
@ -253,6 +253,7 @@ SPARQL queries for existing values. --%>
|
||||||
|
|
||||||
List<String> customJs = new ArrayList<String>(Arrays.asList(JavaScript.JQUERY_UI.path(),
|
List<String> customJs = new ArrayList<String>(Arrays.asList(JavaScript.JQUERY_UI.path(),
|
||||||
JavaScript.CUSTOM_FORM_UTILS.path(),
|
JavaScript.CUSTOM_FORM_UTILS.path(),
|
||||||
|
"/js/browserUtils.js",
|
||||||
"/edit/forms/js/addAuthorsToInformationResource.js"
|
"/edit/forms/js/addAuthorsToInformationResource.js"
|
||||||
));
|
));
|
||||||
request.setAttribute("customJs", customJs);
|
request.setAttribute("customJs", customJs);
|
||||||
|
@ -287,6 +288,9 @@ SPARQL queries for existing values. --%>
|
||||||
<%-- DO NOT CHANGE IDS, CLASSES, OR HTML STRUCTURE ON THIS PAGE WITHOUT UNDERSTANDING THE IMPACT ON THE JAVASCRIPT! --%>
|
<%-- DO NOT CHANGE IDS, CLASSES, OR HTML STRUCTURE ON THIS PAGE WITHOUT UNDERSTANDING THE IMPACT ON THE JAVASCRIPT! --%>
|
||||||
<h2>${title}</h2>
|
<h2>${title}</h2>
|
||||||
|
|
||||||
|
<%@ include file="unsupportedBrowserMessage.jsp" %>
|
||||||
|
|
||||||
|
<div class="noIE67">
|
||||||
<h3>Manage Authors</h3>
|
<h3>Manage Authors</h3>
|
||||||
|
|
||||||
<ul id="authorships" <%= ulClass %>>
|
<ul id="authorships" <%= ulClass %>>
|
||||||
|
@ -403,6 +407,7 @@ SPARQL queries for existing values. --%>
|
||||||
|
|
||||||
<p id="requiredLegend" class="requiredHint">* required fields</p>
|
<p id="requiredLegend" class="requiredHint">* required fields</p>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<c:url var="acUrl" value="/autocomplete?type=${foaf}Person&tokenize=false&stem=false" />
|
<c:url var="acUrl" value="/autocomplete?type=${foaf}Person&tokenize=false&stem=false" />
|
||||||
<c:url var="reorderUrl" value="/edit/primitiveRdfEdit" />
|
<c:url var="reorderUrl" value="/edit/primitiveRdfEdit" />
|
||||||
|
|
|
@ -108,3 +108,10 @@ option {
|
||||||
.or, .cancel{
|
.or, .cancel{
|
||||||
vertical-align:top;
|
vertical-align:top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Message displayed for an unsupported browser. Hide on page load; JavaScript
|
||||||
|
* shows if needed.
|
||||||
|
*/
|
||||||
|
#ie67DisableWrapper {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ie67DisableWrapper {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content form p.inline label {
|
#content form p.inline label {
|
||||||
display: inline;
|
display: inline;
|
||||||
clear: none;
|
clear: none;
|
||||||
|
|
|
@ -5,11 +5,15 @@ var addAuthorForm = {
|
||||||
/* *** Initial page setup *** */
|
/* *** Initial page setup *** */
|
||||||
|
|
||||||
onLoad: function() {
|
onLoad: function() {
|
||||||
|
|
||||||
|
if (this.disableFormInUnsupportedBrowsers()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.mixIn();
|
this.mixIn();
|
||||||
this.initObjects();
|
this.initObjects();
|
||||||
this.initPage();
|
this.initPage();
|
||||||
},
|
},
|
||||||
|
|
||||||
mixIn: function() {
|
mixIn: function() {
|
||||||
// Mix in the custom form utility methods
|
// Mix in the custom form utility methods
|
||||||
$.extend(this, vitro.customFormUtils);
|
$.extend(this, vitro.customFormUtils);
|
||||||
|
@ -192,6 +196,8 @@ var addAuthorForm = {
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// Select event not triggered in IE6/7 when selecting with enter key rather
|
||||||
|
// than mouse.
|
||||||
select: function(event, ui) {
|
select: function(event, ui) {
|
||||||
addAuthorForm.showSelectedAuthor(ui);
|
addAuthorForm.showSelectedAuthor(ui);
|
||||||
}
|
}
|
||||||
|
@ -439,13 +445,15 @@ var addAuthorForm = {
|
||||||
addAuthorForm.onLastNameChange();
|
addAuthorForm.onLastNameChange();
|
||||||
});
|
});
|
||||||
|
|
||||||
// When hitting enter in last name field, if not an autocomplete
|
// When hitting enter in last name field, show first and middle name fields.
|
||||||
// selection, show first and middle name fields.
|
// NB This event fires when selecting an autocomplete suggestion with the enter
|
||||||
|
// key, and there's no way to prevent it. Since it fires first, we undo its
|
||||||
|
// effects in the ac select event listener.
|
||||||
this.lastNameField.keydown(function(event) {
|
this.lastNameField.keydown(function(event) {
|
||||||
if (event.keyCode === 13) {
|
if (event.which === 13) {
|
||||||
addAuthorForm.onLastNameChange();
|
addAuthorForm.onLastNameChange();
|
||||||
return false; // don't submit form
|
return false; // don't submit form
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.removeAuthorshipLinks.click(function() {
|
this.removeAuthorshipLinks.click(function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue