[Libreoffice-commits] online.git: Branch 'libreoffice-5-3' - loleaflet/dist

Pranav Kant pranavk at collabora.co.uk
Mon Mar 27 01:24:22 UTC 2017


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

New commits:
commit 27c2163e6d1a58be1fcf39b63c696d85a6a125c6
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
    Reviewed-on: https://gerrit.libreoffice.org/35565
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 5ffa88b9..b2ac4432 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -498,10 +498,6 @@ $(function () {
 			}
 
 			updateCommandValues();
-			if (fontsSelectValue){
-				$('.fontsizes-select').val(fontsizesSelectValue);
-				updateFontSizeList(fontsSelectValue);
-			}
 
 			insertTable();
 		}
@@ -1236,6 +1232,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