[Libreoffice-commits] online.git: loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Mar 30 21:06:48 UTC 2019


 loleaflet/src/control/Control.Toolbar.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit dcf9559ecd7c6a38a196cf61dddda0ea4b46942b
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Thu Mar 21 10:31:15 2019 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Sat Mar 30 22:06:30 2019 +0100

    loleaflet: add label "document modified" to the status bar
    
    Change-Id: I4550b649fbb31da7e2d6dd2a9a3e5bd95b326d25
    Reviewed-on: https://gerrit.libreoffice.org/69515
    Reviewed-by: Henry Castro <hcastro at collabora.com>
    Tested-by: Henry Castro <hcastro at collabora.com>

diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js
index d28141eca..a61df519f 100644
--- a/loleaflet/src/control/Control.Toolbar.js
+++ b/loleaflet/src/control/Control.Toolbar.js
@@ -995,7 +995,7 @@ function initNormalToolbar() {
 				{type: 'button',  id: 'cancelsearch', img: 'cancel', hint: _('Cancel the search'), hidden: true},
 				{type: 'html',  id: 'left'},
 				{type: 'html',  id: 'right'},
-				{type: 'html',  id: 'modifiedstatuslabel', hidden: true, html: '<div id="modifiedstatuslabel" class="loleaflet-font"></div>', mobile: false, tablet: false},
+				{type: 'html',  id: 'modifiedstatuslabel', html: '<div id="modifiedstatuslabel" class="loleaflet-font"></div>', mobile: false, tablet: false},
 				{type: 'break', id: 'modifiedstatuslabelbreak', mobile: false},
 				{type: 'drop', id: 'userlist', img: 'users', hidden: true, html: '<div id="userlist_container"><table id="userlist_table"><tbody></tbody></table>' +
 					'<hr><table class="loleaflet-font" id="editor-btn">' +
@@ -1683,7 +1683,7 @@ function onCommandStateChanged(e) {
 		var modifiedStatus = e.state === 'true';
 		var html;
 		if (modifiedStatus) {
-			html = $('#modifiedstatuslabel').html('').parent().html();
+			html = $('#modifiedstatuslabel').html('Document modified').parent().html();
 			w2ui['editbar'].set('save', {img:'savemodified'});
 		}
 		else {


More information about the Libreoffice-commits mailing list