diff options
Diffstat (limited to 'alias-angular/app/js')
| -rw-r--r-- | alias-angular/app/js/controllers.js | 6 | ||||
| -rw-r--r-- | alias-angular/app/js/directives.js | 8 |
2 files changed, 3 insertions, 11 deletions
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; }); |
