mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-02 21:52:19 +00:00
(js) Fix possible errors (help from jsjint)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
|
||||
(function() {
|
||||
/* jshint validthis: true */
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
@@ -22,21 +23,20 @@
|
||||
}
|
||||
|
||||
controller.$inject = ['$scope', 'User'];
|
||||
|
||||
function controller($scope, User) {
|
||||
var vm = this;
|
||||
|
||||
$scope.delegateInvitation = false;
|
||||
$scope.delegatedTo = '';
|
||||
$scope.searchText = '';
|
||||
|
||||
|
||||
$scope.userFilter = function($query) {
|
||||
return User.$filter($query);
|
||||
};
|
||||
|
||||
|
||||
$scope.iCalendarAction = function(action) {
|
||||
|
||||
var data;
|
||||
|
||||
|
||||
if (action == 'delegate') {
|
||||
data = {receiveUpdates: false,
|
||||
delegatedTo: $scope.delegatedTo.c_email};
|
||||
@@ -46,7 +46,7 @@
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
angular
|
||||
.module('SOGo.MailerUI')
|
||||
.directive('sgImip', sgImip);
|
||||
|
||||
Reference in New Issue
Block a user