More clarity in argument names

This commit is contained in:
Ludovic Stephan 2017-04-01 09:34:02 -03:00
parent 29836fd15c
commit 4af2562121

View file

@ -238,15 +238,15 @@ $(document).ready(function() {
api_with_auth({
url: Urls['kfet.kpsul.perform_operations'](),
data: data,
on_success: function(data) {
on_success: function() {
updatePreviousOp();
coolReset();
},
on_400: function(data) {
if ('need_comment' in data['errors'])
on_400: function(response) {
if ('need_comment' in response['errors'])
askComment(performOperations);
else
displayErrors(getErrorsHtml(data));
displayErrors(getErrorsHtml(response));
},
next_focus: articleSelect,
});
@ -269,11 +269,11 @@ $(document).ready(function() {
api_with_auth({
url: Urls['kfet.kpsul.cancel_operations'](),
data: data,
on_success: function(data) {
on_success: function() {
coolReset();
},
on_400: function(data) {
displayErrors(getErrorsHtml(data));
on_400: function(response) {
displayErrors(getErrorsHtml(response));
},
next_focus: kpsul.account_manager,
});
@ -815,8 +815,8 @@ $(document).ready(function() {
api_with_auth({
url: Urls['kfet.kpsul.update_addcost'](),
data: data,
on_400: function(data) {
askAddcost(getErrorsHtml(data));
on_400: function(response) {
askAddcost(getErrorsHtml(response));
},
next_focus: kpsul.account_manager,
});