NIHVIVO-2854 InternetExplorer interprets "function" as a reserved word. Changed to "action".

This commit is contained in:
j2blake 2011-07-08 19:47:57 +00:00
parent 1dcbe8491f
commit 94ae938900
2 changed files with 4 additions and 4 deletions

View file

@ -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)) {

View file

@ -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()
},