|
|
@ -804,8 +804,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', |
|
|
|
$store.bind($scope, "orderbyserver", false); |
|
|
|
$store.bind($scope, "orderbyserver", false); |
|
|
|
// Save setting for notimestamp
|
|
|
|
// Save setting for notimestamp
|
|
|
|
$store.bind($scope, "notimestamp", notimestamp); |
|
|
|
$store.bind($scope, "notimestamp", notimestamp); |
|
|
|
// Save setting for playing sound on notification
|
|
|
|
|
|
|
|
$store.bind($scope, "soundnotification", false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Save setting for displaying embeds in rootScope so it can be used from service
|
|
|
|
// Save setting for displaying embeds in rootScope so it can be used from service
|
|
|
|
$rootScope.visible = $scope.noembed === false; |
|
|
|
$rootScope.visible = $scope.noembed === false; |
|
|
@ -1039,13 +1037,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', |
|
|
|
json: JSON.stringify({ buffer: buffer.id }) // remember buffer id for when the notification is clicked
|
|
|
|
json: JSON.stringify({ buffer: buffer.id }) // remember buffer id for when the notification is clicked
|
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($scope.soundnotification) { |
|
|
|
|
|
|
|
// TODO fill in a sound file
|
|
|
|
|
|
|
|
var audioFile = "assets/audio/sonar"; |
|
|
|
|
|
|
|
var soundHTML = '<audio autoplay="autoplay"><source src="' + audioFile + '.ogg" type="audio/ogg" /><source src="' + audioFile + '.mp3" type="audio/mpeg" /></audio>'; |
|
|
|
|
|
|
|
document.getElementById("soundNotification").innerHTML = soundHTML; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
$scope.hasUnread = function(buffer) { |
|
|
|
$scope.hasUnread = function(buffer) { |
|
|
|