[cmd:fullscreen] fix #3177 wrong fullscreen button caption

This commit is contained in:
nao-pon
2020-07-21 22:00:45 +09:00
parent c4ab070ca8
commit e29627fc9c
+4 -1
View File
@@ -10,10 +10,13 @@ elFinder.prototype.commands.fullscreen = function() {
var self = this,
fm = this.fm,
update = function(e, data) {
var full;
e.preventDefault();
e.stopPropagation();
if (data && data.fullscreen) {
self.update(void(0), (data.fullscreen === 'on'));
full = (data.fullscreen === 'on');
self.update(void(0), full);
self.title = fm.i18n(full ? 'reinstate' : 'cmdfullscreen');
}
};