More clarity in argument names
This commit is contained in:
parent
29836fd15c
commit
4af2562121
1 changed files with 9 additions and 9 deletions
|
@ -238,15 +238,15 @@ $(document).ready(function() {
|
||||||
api_with_auth({
|
api_with_auth({
|
||||||
url: Urls['kfet.kpsul.perform_operations'](),
|
url: Urls['kfet.kpsul.perform_operations'](),
|
||||||
data: data,
|
data: data,
|
||||||
on_success: function(data) {
|
on_success: function() {
|
||||||
updatePreviousOp();
|
updatePreviousOp();
|
||||||
coolReset();
|
coolReset();
|
||||||
},
|
},
|
||||||
on_400: function(data) {
|
on_400: function(response) {
|
||||||
if ('need_comment' in data['errors'])
|
if ('need_comment' in response['errors'])
|
||||||
askComment(performOperations);
|
askComment(performOperations);
|
||||||
else
|
else
|
||||||
displayErrors(getErrorsHtml(data));
|
displayErrors(getErrorsHtml(response));
|
||||||
},
|
},
|
||||||
next_focus: articleSelect,
|
next_focus: articleSelect,
|
||||||
});
|
});
|
||||||
|
@ -269,11 +269,11 @@ $(document).ready(function() {
|
||||||
api_with_auth({
|
api_with_auth({
|
||||||
url: Urls['kfet.kpsul.cancel_operations'](),
|
url: Urls['kfet.kpsul.cancel_operations'](),
|
||||||
data: data,
|
data: data,
|
||||||
on_success: function(data) {
|
on_success: function() {
|
||||||
coolReset();
|
coolReset();
|
||||||
},
|
},
|
||||||
on_400: function(data) {
|
on_400: function(response) {
|
||||||
displayErrors(getErrorsHtml(data));
|
displayErrors(getErrorsHtml(response));
|
||||||
},
|
},
|
||||||
next_focus: kpsul.account_manager,
|
next_focus: kpsul.account_manager,
|
||||||
});
|
});
|
||||||
|
@ -815,8 +815,8 @@ $(document).ready(function() {
|
||||||
api_with_auth({
|
api_with_auth({
|
||||||
url: Urls['kfet.kpsul.update_addcost'](),
|
url: Urls['kfet.kpsul.update_addcost'](),
|
||||||
data: data,
|
data: data,
|
||||||
on_400: function(data) {
|
on_400: function(response) {
|
||||||
askAddcost(getErrorsHtml(data));
|
askAddcost(getErrorsHtml(response));
|
||||||
},
|
},
|
||||||
next_focus: kpsul.account_manager,
|
next_focus: kpsul.account_manager,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue