Skip to content

EspoCRM – Open Source CRM Application

jsdoc fix

Yuri Kuznetsov6b1a844feaf5
diff --git a/client/modules/crm/src/views/calendar/calendar-page.js b/client/modules/crm/src/views/calendar/calendar-page.js
index 398abea6e3..920562a61b 100644
--- a/client/modules/crm/src/views/calendar/calendar-page.js
+++ b/client/modules/crm/src/views/calendar/calendar-page.js
@@ -58,7 +58,7 @@ class CalendarPage extends View {
* A shortcut-key => action map.
*
* @protected
- * @type {?Object.<string,function (JQueryKeyEventObject): void>}
+ * @type {?Object.<string, function (KeyboardEvent): void>}
*/
shortcutKeys = {
/** @this CalendarPage */
@@ -344,7 +344,7 @@ class CalendarPage extends View {
/**
* @private
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyHome(e) {
e.preventDefault();
@@ -354,7 +354,7 @@ class CalendarPage extends View {
/**
* @private
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyArrowLeft(e) {
e.preventDefault();
@@ -364,7 +364,7 @@ class CalendarPage extends View {
/**
* @private
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyArrowRight(e) {
e.preventDefault();
@@ -374,7 +374,7 @@ class CalendarPage extends View {
/**
* @private
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyMinus(e) {
if (!this.getCalendarView().actionZoomOut) {
@@ -388,7 +388,7 @@ class CalendarPage extends View {
/**
* @private
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyPlus(e) {
if (!this.getCalendarView().actionZoomIn) {
@@ -402,7 +402,7 @@ class CalendarPage extends View {
/**
* @private
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
* @param {Number} digit
*/
handleShortcutKeyDigit(e, digit) {
@@ -432,7 +432,7 @@ class CalendarPage extends View {
/**
* @private
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyControlSpace(e) {
if (!this.getCalendarView().createEvent) {
diff --git a/client/src/views/email/list.js b/client/src/views/email/list.js
index 924243323f..cf5ee11034 100644
--- a/client/src/views/email/list.js
+++ b/client/src/views/email/list.js
@@ -741,7 +741,7 @@ class EmailListView extends ListView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlSpace(e) {
if (e.target.tagName === 'TEXTAREA' || e.target.tagName === 'INPUT') {
diff --git a/client/src/views/email/record/detail.js b/client/src/views/email/record/detail.js
index d9be04d218..c0495409c8 100644
--- a/client/src/views/email/record/detail.js
+++ b/client/src/views/email/record/detail.js
@@ -663,7 +663,7 @@ class EmailDetailRecordView extends DetailRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlS(e) {
if (this.inlineEditModeIsOn || this.buttonsDisabled) {
diff --git a/client/src/views/email/record/edit.js b/client/src/views/email/record/edit.js
index c8d1c21e8c..137cf8ccc3 100644
--- a/client/src/views/email/record/edit.js
+++ b/client/src/views/email/record/edit.js
@@ -126,7 +126,7 @@ class EmailEditRecordView extends EditRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlS(e) {
if (this.inlineEditModeIsOn || this.buttonsDisabled) {
diff --git a/client/src/views/list-related.js b/client/src/views/list-related.js
index 0fa235c3b6..24bb31f215 100644
--- a/client/src/views/list-related.js
+++ b/client/src/views/list-related.js
@@ -784,7 +784,7 @@ class ListRelatedView extends MainView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlSpace(e) {
if (!this.createButton) {
@@ -804,7 +804,7 @@ class ListRelatedView extends MainView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlSlash(e) {
if (!this.searchPanel) {
@@ -826,7 +826,7 @@ class ListRelatedView extends MainView {
// noinspection JSUnusedLocalSymbols
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlComma(e) {
if (!this.getSearchView()) {
@@ -839,7 +839,7 @@ class ListRelatedView extends MainView {
// noinspection JSUnusedLocalSymbols
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlPeriod(e) {
if (!this.getSearchView()) {
diff --git a/client/src/views/main.js b/client/src/views/main.js
index 968c4ac8d5..91fadbf1d0 100644
--- a/client/src/views/main.js
+++ b/client/src/views/main.js
@@ -106,7 +106,7 @@ class MainView extends View {
* A shortcut-key => action map.
*
* @protected
- * @type {?Object.<string,string|function (JQueryKeyEventObject): void>}
+ * @type {?Object.<string, string|function (KeyboardEvent): void>}
*/
shortcutKeys = null
diff --git a/client/src/views/modal.js b/client/src/views/modal.js
index 31cf85e130..96a95b5a6e 100644
--- a/client/src/views/modal.js
+++ b/client/src/views/modal.js
@@ -271,7 +271,7 @@ class ModalView extends View {
* A shortcut-key => action map.
*
* @protected
- * @type {?Object.<string,string|function (JQueryKeyEventObject): void>}
+ * @type {?Object.<string, string|function (KeyboardEvent): void>}
*/
shortcutKeys = null
diff --git a/client/src/views/modals/detail.js b/client/src/views/modals/detail.js
index b287ef63aa..c18e1e4329 100644
--- a/client/src/views/modals/detail.js
+++ b/client/src/views/modals/detail.js
@@ -753,7 +753,7 @@ class DetailModalView extends ModalView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyControlArrowLeft(e) {
if (!this.model.collection) {
@@ -776,7 +776,7 @@ class DetailModalView extends ModalView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyControlArrowRight(e) {
if (!this.model.collection) {
diff --git a/client/src/views/modals/related-list.js b/client/src/views/modals/related-list.js
index aa1e507bb4..f919b15857 100644
--- a/client/src/views/modals/related-list.js
+++ b/client/src/views/modals/related-list.js
@@ -639,7 +639,7 @@ class RelatedListModalView extends ModalView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlSlash(e) {
if (!this.searchPanel) {
@@ -660,7 +660,7 @@ class RelatedListModalView extends ModalView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlSpace(e) {
if (this.createDisabled) {
diff --git a/client/src/views/modals/select-records.js b/client/src/views/modals/select-records.js
index e29e52c8ab..515af7c902 100644
--- a/client/src/views/modals/select-records.js
+++ b/client/src/views/modals/select-records.js
@@ -486,7 +486,7 @@ class SelectRecordsModalView extends ModalView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlSlash(e) {
if (!this.searchPanel) {
@@ -507,7 +507,7 @@ class SelectRecordsModalView extends ModalView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlEnter(e) {
if (!this.multiple) {
@@ -526,7 +526,7 @@ class SelectRecordsModalView extends ModalView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlSpace(e) {
if (!this.createButton) {
diff --git a/client/src/views/record/detail.js b/client/src/views/record/detail.js
index 43915f6d0b..54443c6a40 100644
--- a/client/src/views/record/detail.js
+++ b/client/src/views/record/detail.js
@@ -546,7 +546,7 @@ class DetailRecordView extends BaseRecordView {
* A shortcut-key => action map.
*
* @protected
- * @type {?Object.<string, string|function (JQueryKeyEventObject): void>}
+ * @type {?Object.<string, string|function (KeyboardEvent): void>}
*/
shortcutKeys = {
/** @this DetailRecordView */
@@ -3970,7 +3970,7 @@ class DetailRecordView extends BaseRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlEnter(e) {
const action = this.shortcutKeyCtrlEnterAction;
@@ -3997,7 +3997,7 @@ class DetailRecordView extends BaseRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlS(e) {
if (this.inlineEditModeIsOn || this.buttonsDisabled) {
@@ -4024,7 +4024,7 @@ class DetailRecordView extends BaseRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlSpace(e) {
if (this.inlineEditModeIsOn || this.buttonsDisabled) {
@@ -4057,7 +4057,7 @@ class DetailRecordView extends BaseRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyEscape(e) {
if (this.inlineEditModeIsOn || this.buttonsDisabled) {
@@ -4086,13 +4086,13 @@ class DetailRecordView extends BaseRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlAltEnter(e) {}
/**
* @public
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyControlBackslash(e) {
if (!this.hasTabs()) {
@@ -4140,7 +4140,7 @@ class DetailRecordView extends BaseRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyControlArrowLeft(e) {
if (this.inlineEditModeIsOn || this.buttonsDisabled) {
@@ -4173,7 +4173,7 @@ class DetailRecordView extends BaseRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyControlArrowRight(e) {
if (this.inlineEditModeIsOn || this.buttonsDisabled) {
diff --git a/client/src/views/record/edit.js b/client/src/views/record/edit.js
index 6b6a7800d9..0c0c270916 100644
--- a/client/src/views/record/edit.js
+++ b/client/src/views/record/edit.js
@@ -224,7 +224,7 @@ class EditRecordView extends DetailRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyEscape(e) {
if (this.buttonsDisabled) {
@@ -256,7 +256,7 @@ class EditRecordView extends DetailRecordView {
/**
* @protected
- * @param {JQueryKeyEventObject} e
+ * @param {KeyboardEvent} e
*/
handleShortcutKeyCtrlAltEnter(e) {
if (this.buttonsDisabled) {