[Libreoffice-commits] online.git: loleaflet/src

Andras Timar andras.timar at collabora.com
Sun May 29 22:43:50 UTC 2016


 loleaflet/src/control/Control.Menubar.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit a4c8ceb1ac766cfb3a6b1cd5e044d43a5d145a7d
Author: Andras Timar <andras.timar at collabora.com>
Date:   Mon May 30 00:43:04 2016 +0200

    loleaflet: bccu#1856 disable View - Full screen on Edge, too

diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 5eab099..332be66 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -191,11 +191,12 @@ L.Control.Menubar = L.Control.extend({
 		var ua = window.navigator.userAgent;
 		var msie = ua.indexOf('MSIE '); // IE 10 or older
 		var trident = ua.indexOf('Trident/'); // IE 11
+		var edge = ua.indexOf('Edge/'); // Microsoft Edge
 		$(items).each(function() {
 			var aItem = this;
 			var type = $(aItem).data('type');
 			var id = $(aItem).data('id');
-			if (id === 'fullscreen' && (msie > 0 || trident > 0)) { // Full screen works weirdly on IE 11
+			if (id === 'fullscreen' && (msie > 0 || trident > 0 || edge > 0)) { // Full screen works weirdly on IE 11 and on Edge
 				$(aItem).addClass('disabled');
 				var index = self.options.allowedViewModeActions.indexOf('fullscreen');
 				if (index > 0) {


More information about the Libreoffice-commits mailing list