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
|
private static final Log log = LogFactory
|
||||||
.getLog(UserAccountsAjaxController.class);
|
.getLog(UserAccountsAjaxController.class);
|
||||||
|
|
||||||
private static final String PARAMETER_FUNCTION = "function";
|
private static final String PARAMETER_ACTION = "action";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Actions requiredActions(VitroRequest vreq) {
|
protected Actions requiredActions(VitroRequest vreq) {
|
||||||
|
@ -37,7 +37,7 @@ public class UserAccountsAjaxController extends VitroAjaxController {
|
||||||
protected void doRequest(VitroRequest vreq, HttpServletResponse resp)
|
protected void doRequest(VitroRequest vreq, HttpServletResponse resp)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
try {
|
try {
|
||||||
String function = vreq.getParameter(PARAMETER_FUNCTION);
|
String function = vreq.getParameter(PARAMETER_ACTION);
|
||||||
if ("checkExternalAuth".equals(function)) {
|
if ("checkExternalAuth".equals(function)) {
|
||||||
new ExternalAuthChecker(this, vreq, resp).processRequest();
|
new ExternalAuthChecker(this, vreq, resp).processRequest();
|
||||||
} else if ("autoCompleteProfile".equals(function)) {
|
} else if ("autoCompleteProfile".equals(function)) {
|
||||||
|
|
|
@ -92,7 +92,7 @@ var associateProfileFields = {
|
||||||
url: associateProfileFields.ajaxUrl,
|
url: associateProfileFields.ajaxUrl,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
function: "autoCompleteProfile",
|
action: "autoCompleteProfile",
|
||||||
term: request.term,
|
term: request.term,
|
||||||
externalAuthId: associateProfileFields.externalAuthIdField.val()
|
externalAuthId: associateProfileFields.externalAuthIdField.val()
|
||||||
},
|
},
|
||||||
|
@ -115,7 +115,7 @@ var associateProfileFields = {
|
||||||
url: associateProfileFields.ajaxUrl,
|
url: associateProfileFields.ajaxUrl,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
data: {
|
data: {
|
||||||
function: "checkExternalAuth",
|
action: "checkExternalAuth",
|
||||||
userAccountUri: associateProfileFields.userUri,
|
userAccountUri: associateProfileFields.userUri,
|
||||||
externalAuthId: associateProfileFields.externalAuthIdField.val()
|
externalAuthId: associateProfileFields.externalAuthIdField.val()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue