loleaflet/src/control/Control.Toolbar.js | 15 --------------- 1 file changed, 15 deletions(-)
New commits: commit 1d2b0415b92f629ea4e73cb2265cba0bca6e2111 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue Apr 2 15:45:38 2019 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Tue Apr 2 15:49:11 2019 -0400 loleaflet: remove "document changes" status bar item It is no longer need it Change-Id: Ic054c52ad14c55a0e93c84f4ff94f83ea0d33100 diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js index a61df519f..5b3cc9a04 100644 --- a/loleaflet/src/control/Control.Toolbar.js +++ b/loleaflet/src/control/Control.Toolbar.js @@ -995,8 +995,6 @@ 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', 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">' + '<tr>' + @@ -1679,19 +1677,6 @@ function onCommandStateChanged(e) { else if (commandName === '.uno:LanguageStatus') { updateToolbarItem(statusbar, 'LanguageStatus', $('#LanguageStatus').html(_(state)).parent().html()); } - else if (commandName === '.uno:ModifiedStatus') { - var modifiedStatus = e.state === 'true'; - var html; - if (modifiedStatus) { - html = $('#modifiedstatuslabel').html('Document modified').parent().html(); - w2ui['editbar'].set('save', {img:'savemodified'}); - } - else { - html = $('#modifiedstatuslabel').html(_('Document saved')).parent().html(); - w2ui['editbar'].set('save', {img:'save'}); - } - updateToolbarItem(statusbar, 'modifiedstatuslabel', html); - } else if (commandName === '.uno:StatusDocPos') { state = toLocalePattern('Sheet %1 of %2', 'Sheet (\\d+) of (\\d+)', state, '%1', '%2'); updateToolbarItem(statusbar, 'StatusDocPos', $('#StatusDocPos').html(state ? state : '  ').parent().html()); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits