Skip to content

Commit acd0a06

Browse files
unknownunknown
authored andcommitted
disable debug
1 parent ebf4b66 commit acd0a06

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

js/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
require('nw.gui').Window.get().showDevTools(); //show console at start
1+
// require('nw.gui').Window.get().showDevTools(); //show console at start
22
require('nw.gui').Window.get().maximize(); //maximize windows on start
33

44
var credentials = require('./private.js'); //config include domain user and pass
55

66
var ActiveDirectory = require('activedirectory');
7-
var ad = new ActiveDirectory(credentials.dn, credentials.dc, credentials.user, credentials.pass, {attributes: {user: [ 'cn', 'telephonenumber', 'mail', 'department']}});
7+
var ad = new ActiveDirectory(credentials.dn, credentials.dc, credentials.user, credentials.pass, {attributes: {user: [ 'cn', 'telephonenumber', 'mail', 'department', 'mobile']}});
88

99
var groupName = 'Employees'; // that how i call group with all real persons
1010
ad.getUsersForGroup(groupName, function(err, users) {
@@ -33,7 +33,7 @@ function users2table (users) {
3333
// console.log(user);
3434
tablehtml+='<tr>';
3535
tablehtml+= '<td>'+user.cn+'</td>'
36-
tablehtml+= '<td>'+((user.telephoneNumber)?user.telephoneNumber:'')+'</td>'
36+
tablehtml+= '<td>'+((user.telephoneNumber)?user.telephoneNumber:'')+((user.mobile)?('<br/>'+user.mobile):'')+'</td>'
3737
tablehtml+= '<td>'+((user.mail)?'<a href="mailto:'+user.mail+'">'+user.mail+'</a>':'')+'</td>'
3838
tablehtml+= '<td>'+((user.department)?user.department:'')+'</td>'
3939
tablehtml+='</tr>'

0 commit comments

Comments
 (0)