     pwgAjax.post url, params, onSuccess
 
 pwguardApp.controller 'SearchCtrl', ['$scope',
-                                     '$rootScope',
                                      'pwgAjax'
                                      SearchCtrl]
 

# Navigation bar controller
# ---------------------------------------------------------------------------

NavbarCtrl = ($scope, $rootScope, pwgAjax) ->
  $scope.logout = () ->
    # NOTE: See https://groups.google.com/forum/#!msg/angular/bsTbZ86WAY4/gdpKwc4f7ToJ
    #

  $scope.login = ->
    if $scope.canSubmit
      handleLogin = (data) ->
        $scope.saveLoggedInUser(data.user)
        $scope.redirectToSegment('search')

      handleFailure = (data) ->
        # Nothing to do.
