/*====================================================== ************ Notifications ************ ======================================================*/ var _tempNotificationElement; app.addNotification = function (params) { if (!params) return; if (typeof params.media === 'undefined') params.media = app.params.notificationMedia; if (typeof params.title === 'undefined') params.title = app.params.notificationTitle; if (typeof params.subtitle === 'undefined') params.subtitle = app.params.notificationSubtitle; if (typeof params.closeIcon === 'undefined') params.closeIcon = app.params.notificationCloseIcon; if (typeof params.hold === 'undefined') params.hold = app.params.notificationHold; if (typeof params.closeOnClick === 'undefined') params.closeOnClick = app.params.notificationCloseOnClick; if (typeof params.button === 'undefined') params.button = app.params.notificationCloseButtonText && { text: app.params.notificationCloseButtonText, close: true }; if (!_tempNotificationElement) _tempNotificationElement = document.createElement('div'); params.material = app.params.material; var container = $('.notifications'); if (container.length === 0) { app.root.append('