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

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 3 22:26:32 UTC 2020


 loleaflet/src/control/Ruler.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 349b2f7eb607b76d655c75b8fbfa133ddc879302
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Fri Jul 31 17:14:13 2020 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Tue Aug 4 00:26:14 2020 +0200

    loleaflet: remove unnecessary function dependency ...
    
    of the "jquery" library
    
    Change-Id: Id4a2c0171d09320178d900df0339b4b8245fc3da
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99906
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Tested-by: Jenkins
    Reviewed-by: Henry Castro <hcastro at collabora.com>

diff --git a/loleaflet/src/control/Ruler.js b/loleaflet/src/control/Ruler.js
index 79c89ae37..6ec7c7029 100644
--- a/loleaflet/src/control/Ruler.js
+++ b/loleaflet/src/control/Ruler.js
@@ -28,7 +28,7 @@ L.Control.Ruler = L.Control.extend({
 		map.on('docsize', this._updatePaintTimer, this);
 		map.on('scrolloffset resize', this._fixOffset, this);
 		map.on('updatepermission', this._changeInteractions, this);
-		$('#map').addClass('hasruler');
+		L.DomUtil.addClass(map.getContainer(), 'hasruler');
 		this._map = map;
 
 		return this._initLayout();


More information about the Libreoffice-commits mailing list