|
|
@ -4,7 +4,7 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
var models = angular.module('weechatModels', []); |
|
|
|
var models = angular.module('weechatModels', []); |
|
|
|
|
|
|
|
|
|
|
|
models.service('models', ['colors', function(colors) { |
|
|
|
models.service('models', ['$rootScope', 'colors', function($rootScope, colors) { |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Buffer class |
|
|
|
* Buffer class |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -160,9 +160,12 @@ models.service('models', ['colors', function(colors) { |
|
|
|
return buffer; |
|
|
|
return buffer; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
activeBuffer.notification = false; |
|
|
|
activeBuffer.notification = false; |
|
|
|
activeBuffer.active = true; |
|
|
|
activeBuffer.active = true; |
|
|
|
activeBuffer.unread = ''; |
|
|
|
activeBuffer.unread = ''; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$rootScope.$emit('activeBufferChanged'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|