mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 01:48:40 +00:00
doc fixes and event handler bug fix
This commit is contained in:
parent
c0be731029
commit
aa71a436a3
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user