From 3bb395e8e315b4e61ce5e661f0606bb09d861c08 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Wed, 2 May 2012 00:10:31 -0400 Subject: style cleanups --- alias-angular/app/js/controllers.js | 6 +++--- alias-angular/app/js/directives.js | 8 -------- 2 files changed, 3 insertions(+), 11 deletions(-) (limited to 'alias-angular/app/js') diff --git a/alias-angular/app/js/controllers.js b/alias-angular/app/js/controllers.js index 33feb0d..bbcd7f5 100644 --- a/alias-angular/app/js/controllers.js +++ b/alias-angular/app/js/controllers.js @@ -94,9 +94,9 @@ function RosterCtl($scope, StropheSrv, $log, $rootScope) { $scope.chatWith = function(contact) { $rootScope.$broadcast('msgrequest', contact.name||contact.jid); }; - - $scope.status = function(status) { - var pres = $pres().c("show",{},status); + + $scope.setStatus = function(status) { + var pres = $pres().c("show", {}, status); StropheSrv.send(pres); $rootScope.self["status"] = status; }; diff --git a/alias-angular/app/js/directives.js b/alias-angular/app/js/directives.js index cb7e70d..3b9b652 100644 --- a/alias-angular/app/js/directives.js +++ b/alias-angular/app/js/directives.js @@ -28,12 +28,4 @@ angular.module('Alias.directives', []). } }; return directiveDefinition; - }).directive('dropdownToggle', function($log) { - var directiveDefinition = { - restrict: 'A', - link: function(scope, elm, attrs) { - elm.dropdown(); - } - }; - return directiveDefinition; }); -- cgit v1.2.3-70-g09d2