Caselog entry form: Fix event name

This commit is contained in:
Molkobain
2021-02-24 17:34:14 +01:00
parent ad7b78b871
commit 5770000e65
2 changed files with 3 additions and 3 deletions

View File

@@ -624,7 +624,7 @@ $(function()
* @private
*/
_EmptyCaseLogsEntryForms: function () {
this.element.find(this.js_selectors.caselog_entry_form).trigger('clear_entry.case_entry_form.itop');
this.element.find(this.js_selectors.caselog_entry_form).trigger('clear_entry.caselog_entry_form.itop');
},
_FreezeCaseLogsEntryForms: function () {
this.element.find(this.js_selectors.caselog_entry_form).trigger('enter_pending_submission_state.caselog_entry_form.itop');
@@ -765,7 +765,7 @@ $(function()
me._ApplyEntriesFilters();
// For now, we don't hide the forms as the user may want to add something else
me.element.find(me.js_selectors.caselog_entry_form).trigger('clear_entry.case_entry_form.itop');
me.element.find(me.js_selectors.caselog_entry_form).trigger('clear_entry.caselog_entry_form.itop');
// TODO 3.0.0: Redirect to transition page if necessary (buttons need to be added)
// // Redirect to stimulus

View File

@@ -156,7 +156,7 @@ $(function() {
return me._GetInputData();
});
// Clear the entry value
this.element.on('clear_entry.case_entry_form.itop', function () {
this.element.on('clear_entry.caselog_entry_form.itop', function () {
me._EmptyInput();
});
// Set focus in the input