summaryrefslogtreecommitdiff
path: root/loleaflet/dist/toolbar/toolbar.js
diff options
context:
space:
mode:
authorozturkemre <ozturkemry@gmail.com>2018-04-27 15:42:49 +0300
committerpranavk <pranavk@collabora.co.uk>2018-04-30 16:34:03 +0200
commitc879049f1f77484317b68082fefad9b452866f20 (patch)
treed201d9f86e19d9b21eaf1ced48ba5ca7f1af9ce8 /loleaflet/dist/toolbar/toolbar.js
parent921527757687717ab89451dc5e6d76dcbdac9849 (diff)
tdf#115310 "Save button" changes while there is unsaved changes
Change-Id: Ied761fe86e774371daf4e2d80328f756c0fc628f Reviewed-on: https://gerrit.libreoffice.org/53558 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'loleaflet/dist/toolbar/toolbar.js')
-rw-r--r--loleaflet/dist/toolbar/toolbar.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 2791d423f..7683145df 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1089,9 +1089,11 @@ map.on('commandstatechanged', function (e) {
var html;
if (modifiedStatus) {
html = $('#modifiedstatuslabel').html('').parent().html();
+ w2ui['toolbar-up'].set('save', {img:'savemodified'});
}
else {
html = $('#modifiedstatuslabel').html(_('Document saved')).parent().html();
+ w2ui['toolbar-up'].set('save', {img:'save'});
}
updateToolbarItem(statusbar, 'modifiedstatuslabel', html);
}