diff --git a/Message/Response/ResponseManager.js b/Message/Response/ResponseManager.js index e012ae0..3d214c1 100755 --- a/Message/Response/ResponseManager.js +++ b/Message/Response/ResponseManager.js @@ -67,7 +67,7 @@ export class ResponseManager ) { this.messages[key][request](data); } else if (typeof this.messages[key] !== 'undefined') { - this.messages[key].any(data); + this.messages[key][null](data); } else { jsOMS.Log.Logger.instance.warning('Undefined type: ' + key); } diff --git a/Model/Message/DomAction.js b/Model/Message/DomAction.js index 1f30098..9db0721 100755 --- a/Model/Message/DomAction.js +++ b/Model/Message/DomAction.js @@ -1,7 +1,7 @@ /** * Perform DOM action. * - * @param {{delay:int},{type:int}} data DOM action data + * @param {{delay:number},{type:number}} data DOM action data * * @since 1.0.0 */ diff --git a/Model/Message/FormValidation.js b/Model/Message/FormValidation.js index 80943a4..b627b91 100755 --- a/Model/Message/FormValidation.js +++ b/Model/Message/FormValidation.js @@ -1,7 +1,7 @@ /** * Form validation. * - * @param {{delay:int},{errors:string},{form:string}} data Message data + * @param {{delay:number},{errors:string},{form:string}} data Message data * * @since 1.0.0 */ diff --git a/Model/Message/Notify.js b/Model/Message/Notify.js index f5e6d2c..5f0c949 100755 --- a/Model/Message/Notify.js +++ b/Model/Message/Notify.js @@ -1,7 +1,7 @@ /** * Notification message. * - * @param {{title:string},{content:string},{level:int},{delay:int},{stay:int}} data Message data + * @param {{title:string},{content:string},{level:number},{delay:number},{stay:number}} data Message data * * @since 1.0.0 */ diff --git a/Model/Message/Redirect.js b/Model/Message/Redirect.js index a96a951..0de9946 100755 --- a/Model/Message/Redirect.js +++ b/Model/Message/Redirect.js @@ -3,7 +3,7 @@ import { UriFactory } from '../../Uri/UriFactory.js'; /** * Redirect. * - * @param {{delay:int},{uri:string}} data Message data + * @param {{delay:number},{uri:string}} data Message data * * @since 1.0.0 */ diff --git a/Model/Message/Reload.js b/Model/Message/Reload.js index 62f37c2..081b324 100755 --- a/Model/Message/Reload.js +++ b/Model/Message/Reload.js @@ -1,12 +1,12 @@ /** * Reload page. * - * @param {{delay:int}} data Message data + * @param {{delay:number}} data Message data * * @since 1.0.0 */ export function reloadMessage (data) { setTimeout(function () { - document.location.reload(true); + document.location.reload(); }, parseInt(data.delay)); }; diff --git a/UI/Component/Form.js b/UI/Component/Form.js index 296d9df..cf6feb4 100755 --- a/UI/Component/Form.js +++ b/UI/Component/Form.js @@ -876,7 +876,7 @@ export class Form if ((successInject = form.getSuccess()) !== null) { successInject(response); } else if (typeof response.get('type') !== 'undefined') { - self.app.responseManager.run(response.get('type'), response.get(), request); + self.app.responseManager.run(response.get('type'), response.get(), null); } else if (typeof o.status !== 'undefined' && o.status !== NotificationLevel.HIDDEN) { self.app.notifyManager.send( new NotificationMessage(o.status, o.title, o.message), NotificationType.APP_NOTIFICATION