[Libreoffice-commits] online.git: loleaflet/dist
Pranav Kant
pranavk at collabora.co.uk
Fri Mar 31 06:53:14 UTC 2017
loleaflet/dist/toolbar/toolbar.js | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 4b7904036ac2ef0251298f394715ad8bdacc6288
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Fri Mar 31 12:22:27 2017 +0530
loleaflet: Annotate readonly users in userlist
Change-Id: Ia000a06baf9f88830dd30c4c4a4297eb10192fd6
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 6bbd3439..30cfd0fb 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1601,6 +1601,12 @@ map.on('addview', function(e) {
username = _('You');
color = '#000';
}
+
+ // Mention readonly sessions in userlist
+ if (e.readonly) {
+ username += ' (' + _('Readonly') + ')';
+ }
+
var userlistItem = w2ui['toolbar-down'].get('userlist');
var newhtml = $(userlistItem.html).find('#userlist_table tbody').append(getUserItem(e.viewId, username, color)).parent().parent()[0].outerHTML;
userlistItem.html = newhtml;
More information about the Libreoffice-commits
mailing list