bgsave: restore modified status overlay in classic toolbar mode.
Apparently a transient victim of the transition to JSDialog. Signed-off-by: Michael Meeks <michael.meeks@collabora.com> Change-Id: I93c55db28d8ab2cc6b43dbce558d60dfa523fa76pull/9099/head
parent
08af75d52d
commit
00237a3552
|
@ -171,8 +171,7 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
|
|||
if (state === 'true') {
|
||||
document.getElementById('save').classList.add('savemodified');
|
||||
document.getElementById('file-save').classList.add('savemodified');
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
document.getElementById('save').classList.remove('savemodified');
|
||||
document.getElementById('file-save').classList.remove('savemodified');
|
||||
}
|
||||
|
|
|
@ -793,13 +793,13 @@ function processStateChangedCommand(commandName, state) {
|
|||
}
|
||||
}
|
||||
else if (commandName === '.uno:ModifiedStatus') {
|
||||
// // TODO: topToolbar case
|
||||
// if (state === 'true') {
|
||||
// toolbar.set('save', {img:'savemodified'});
|
||||
// }
|
||||
// else {
|
||||
// toolbar.set('save', {img:'save'});
|
||||
// }
|
||||
if (document.getElementById('save')) {
|
||||
if (state === 'true')
|
||||
document.getElementById('save').classList.add('savemodified');
|
||||
else
|
||||
document.getElementById('save').classList.remove('savemodified');
|
||||
}
|
||||
state = ''; // stop processing below
|
||||
}
|
||||
else if (commandName === '.uno:DocumentRepair') {
|
||||
if (state === 'true') {
|
||||
|
|
Loading…
Reference in New Issue