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

Pranav Kant pranavk at collabora.co.uk
Thu Jan 12 11:15:05 UTC 2017


 loleaflet/dist/toolbar/toolbar.js |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit fac3c3aafcb5182c9f59eb6ba5131b6b5606704e
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Thu Jan 12 16:44:36 2017 +0530

    loleaflet: Move this logic to updateCommandValues()
    
    Change-Id: I64e96f87e56c1b14dd2085d552eebd40977cd7e9

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 23d4284..b299611 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -616,10 +616,6 @@ $(function () {
 			}
 
 			updateCommandValues();
-			if (fontsSelectValue){
-				$('.fontsizes-select').val(fontsizesSelectValue);
-				updateFontSizeList(fontsSelectValue);
-			}
 
 			insertTable();
 		}
@@ -1340,6 +1336,10 @@ function updateCommandValues() {
 		});
 
 		$('.fontsizes-select').on('select2:select', onFontSizeSelect);
+		if (fontsSelectValue) {
+			updateFontSizeList(fontsSelectValue);
+		}
+		$('.fontsizes-select').val(fontsizesSelectValue).trigger('change');
 	}
 }
 


More information about the Libreoffice-commits mailing list