loleaflet/js/toolbar.js |   23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

New commits:
commit 1018589d44315ce96ea1e4d1ef7acd7e7c31da98
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Sun Aug 12 21:06:10 2018 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Sun Aug 12 21:20:19 2018 -0400

    loleaflet: fix the number of users label from the status bar
    
    Change-Id: I0b7e66c73a335295e5e61510bc0b68fc5c08ca58

diff --git a/loleaflet/js/toolbar.js b/loleaflet/js/toolbar.js
index 98e7d6f5b..a08e81598 100644
--- a/loleaflet/js/toolbar.js
+++ b/loleaflet/js/toolbar.js
@@ -32,13 +32,6 @@ function _mobilify() {
                        statusbar.hide(item.id);
                }
        });
-
-       nUsers = '%n';
-       oneUser = '1';
-       noUser = '0';
-       updateUserListCount();
-
-       $('#document-name-input').hide();
 }
 
 function resizeToolbar() {
@@ -1240,11 +1233,23 @@ function onDocLayerInit() {
 
                break;
        }
-       toolbarUp.refresh();
-       statusbar.refresh();
+
        if (L.Browser.mobile) {
                _mobilify();
+               nUsers = '%n';
+               oneUser = '1';
+               noUser = '0';
+               $('#document-name-input').hide();
+       } else {
+               nUsers = _('%n users');
+               oneUser = _('1 user');
+               noUser = _('0 users');
+               $('#document-name-input').show();
        }
+
+       updateUserListCount();
+       toolbarUp.refresh();
+       statusbar.refresh();
 }
 
 function onCommandStateChanged(e) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to