use angular.element instead of jquery
This commit is contained in:
parent
cdcdcb096b
commit
16f9897964
1 changed files with 2 additions and 2 deletions
|
@ -843,7 +843,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
// Save setting for playing sound on notification
|
// Save setting for playing sound on notification
|
||||||
$store.bind($scope, "soundnotification", false);
|
$store.bind($scope, "soundnotification", false);
|
||||||
// Save setting for font family
|
// Save setting for font family
|
||||||
$store.bind($scope, "fontfamily", $('.monospace').css('font-family'));
|
$store.bind($scope, "fontfamily", angular.element('.monospace').css('font-family'));
|
||||||
|
|
||||||
// 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;
|
||||||
|
@ -894,7 +894,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
|
|
||||||
// Update font family when changed
|
// Update font family when changed
|
||||||
$scope.$watch('fontfamily', function() {
|
$scope.$watch('fontfamily', function() {
|
||||||
$('.monospace').css('font-family', $scope.fontfamily);
|
angular.element('.monospace').css('font-family', $scope.fontfamily);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.setActiveBuffer = function(bufferId, key) {
|
$scope.setActiveBuffer = function(bufferId, key) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue