Fixes indenting

This commit is contained in:
David Cormier 2013-08-01 21:54:12 -04:00
parent 5af244737e
commit 40d0145979
1 changed files with 101 additions and 98 deletions

View File

@ -207,13 +207,16 @@ weechat.factory('connection', ['$rootScope', 'colors', function($scope, colors)
} }
var handleBufferOpened = function(message) { var handleBufferOpened = function(message) {
console.log('buffer opened');
var fullName = message['objects'][0]['content'][0]['full_name'] var fullName = message['objects'][0]['content'][0]['full_name']
var buffer = message['objects'][0]['content'][0]['pointers'][0] var buffer = message['objects'][0]['content'][0]['pointers'][0]
$scope.buffers[buffer] = { 'lines':[], 'full_name':fullName } $scope.buffers[buffer] = { 'lines':[], 'full_name':fullName }
console.log($scope.buffers); console.log($scope.buffers);
} }
var sendMessage = function(message) { var sendMessage = function(message) {
message = "input " + $scope.activeBuffer['full_name'] + " " + message + "\n" message = "input " + $scope.activeBuffer['full_name'] + " " + message + "\n"
console.log($scope.activeBuffer);
doSend(message); doSend(message);
} }
@ -251,5 +254,5 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', 'connection', functio
$scope.connect = function() { $scope.connect = function() {
connection.connect($scope.hostport, $scope.proto, $scope.password); connection.connect($scope.hostport, $scope.proto, $scope.password);
} }
}] }]
); );