|
|
@ -315,7 +315,6 @@ weechat.factory('connection', ['$q', '$rootScope', '$log', '$store', 'handlers', |
|
|
|
models.setActiveBuffer(buffer.id); |
|
|
|
models.setActiveBuffer(buffer.id); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
$rootScope.predicate = 'number'; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -517,12 +516,20 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', |
|
|
|
$store.bind($scope, "nonicklist", false);
|
|
|
|
$store.bind($scope, "nonicklist", false);
|
|
|
|
// Save setting for displaying embeds
|
|
|
|
// Save setting for displaying embeds
|
|
|
|
$store.bind($scope, "noembed", false);
|
|
|
|
$store.bind($scope, "noembed", false);
|
|
|
|
|
|
|
|
// Save setting for channel ordering
|
|
|
|
|
|
|
|
$store.bind($scope, "orderbyserver", 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; |
|
|
|
// Watch model and update show setting when it changes
|
|
|
|
// Watch model and update show setting when it changes
|
|
|
|
$scope.$watch('noembed', function() { |
|
|
|
$scope.$watch('noembed', function() { |
|
|
|
$rootScope.visible = $scope.noembed == false; |
|
|
|
$rootScope.visible = $scope.noembed == false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
// Watch model and update channel sorting when it changes
|
|
|
|
|
|
|
|
$scope.$watch('orderbyserver', function() { |
|
|
|
|
|
|
|
$rootScope.predicate = $scope.orderbyserver ? 'serverSortKey' : 'number'; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$rootScope.predicate = $scope.orderbyserver ? 'serverSortKey' : 'number'; |
|
|
|
|
|
|
|
|
|
|
|
$scope.setActiveBuffer = function(key) { |
|
|
|
$scope.setActiveBuffer = function(key) { |
|
|
|
models.setActiveBuffer(key); |
|
|
|
models.setActiveBuffer(key); |
|
|
|