fix #896 (Manage Users: Status bar says '0 robots' when 'Include Robots' is not checked)

This commit is contained in:
rolux 2013-07-19 10:09:21 +00:00
parent d0e5290357
commit d7bf50b45b

View file

@ -379,10 +379,14 @@ pandora.ui.usersDialog = function() {
$guestsCheckbox.value()
? ' (' + Ox.formatNumber(data.users) + ' registered, '
+ Ox.formatNumber(data.guests) + ' guest'
+ (data.guests == 1 ? '' : 's') + ', '
+ (data.guests == 1 ? '' : 's')
+ (
$robotsCheckbox.value()
? ', '
+ Ox.formatNumber(data.robots) + ' robot'
+ (data.robots == 1 ? '' : 's')
+ ')'
: ''
) + ')'
: ''
)
);