use angular.element instead of jquery

This commit is contained in:
Tor Hveem 2014-07-07 16:03:33 +02:00
parent cdcdcb096b
commit 16f9897964

View file

@ -843,7 +843,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
// Save setting for playing sound on notification
$store.bind($scope, "soundnotification", false);
// 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
$rootScope.visible = $scope.noembed === false;
@ -894,7 +894,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
// Update font family when changed
$scope.$watch('fontfamily', function() {
$('.monospace').css('font-family', $scope.fontfamily);
angular.element('.monospace').css('font-family', $scope.fontfamily);
});
$scope.setActiveBuffer = function(bufferId, key) {