mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[cmd:fullscreen] fix #3177 wrong fullscreen button caption
This commit is contained in:
@@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user