NIHVIVO-2854 InternetExplorer interprets "function" as a reserved word. Changed to "action".
This commit is contained in:
parent
1dcbe8491f
commit
94ae938900
2 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@ public class UserAccountsAjaxController extends VitroAjaxController {
|
|||
private static final Log log = LogFactory
|
||||
.getLog(UserAccountsAjaxController.class);
|
||||
|
||||
private static final String PARAMETER_FUNCTION = "function";
|
||||
private static final String PARAMETER_ACTION = "action";
|
||||
|
||||
@Override
|
||||
protected Actions requiredActions(VitroRequest vreq) {
|
||||
|
@ -37,7 +37,7 @@ public class UserAccountsAjaxController extends VitroAjaxController {
|
|||
protected void doRequest(VitroRequest vreq, HttpServletResponse resp)
|
||||
throws ServletException, IOException {
|
||||
try {
|
||||
String function = vreq.getParameter(PARAMETER_FUNCTION);
|
||||
String function = vreq.getParameter(PARAMETER_ACTION);
|
||||
if ("checkExternalAuth".equals(function)) {
|
||||
new ExternalAuthChecker(this, vreq, resp).processRequest();
|
||||
} else if ("autoCompleteProfile".equals(function)) {
|
||||
|
|
|
@ -92,7 +92,7 @@ var associateProfileFields = {
|
|||
url: associateProfileFields.ajaxUrl,
|
||||
dataType: 'json',
|
||||
data: {
|
||||
function: "autoCompleteProfile",
|
||||
action: "autoCompleteProfile",
|
||||
term: request.term,
|
||||
externalAuthId: associateProfileFields.externalAuthIdField.val()
|
||||
},
|
||||
|
@ -115,7 +115,7 @@ var associateProfileFields = {
|
|||
url: associateProfileFields.ajaxUrl,
|
||||
dataType: "json",
|
||||
data: {
|
||||
function: "checkExternalAuth",
|
||||
action: "checkExternalAuth",
|
||||
userAccountUri: associateProfileFields.userUri,
|
||||
externalAuthId: associateProfileFields.externalAuthIdField.val()
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue