Merge branch 'hotfix/4.1.6'
This commit is contained in:
@@ -50,7 +50,9 @@ Espo.define('views/notification/badge', 'view', function (Dep) {
|
||||
},
|
||||
|
||||
setup: function () {
|
||||
this.soundPath = this.getConfig().get('notificationSound') || this.soundPath;
|
||||
this.soundPath = this.getBasePath() + (this.getConfig().get('notificationSound') || this.soundPath);
|
||||
|
||||
this.notificationSoundsDisabled = this.getConfig().get('notificationSoundsDisabled');
|
||||
|
||||
this.once('remove', function () {
|
||||
if (this.timeout) {
|
||||
@@ -105,6 +107,8 @@ Espo.define('views/notification/badge', 'view', function (Dep) {
|
||||
},
|
||||
|
||||
playSound: function () {
|
||||
if (this.notificationSoundsDisabled) return;
|
||||
|
||||
var html = '' +
|
||||
'<audio autoplay="autoplay">'+
|
||||
'<source src="' + this.soundPath + '.mp3" type="audio/mpeg" />'+
|
||||
|
||||
@@ -48,6 +48,8 @@ Espo.define('views/popup-notification', 'view', function (Dep) {
|
||||
|
||||
this.notificationSoundsDisabled = this.getConfig().get('notificationSoundsDisabled');
|
||||
|
||||
this.soundPath = this.getBasePath() + (this.getConfig().get('popupNotificationSound') || this.soundPath);
|
||||
|
||||
this.on('render', function () {
|
||||
$(containerSelector).remove();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user