From 01804dbdfe89f73424b53663df69fc2dd3cfdd80 Mon Sep 17 00:00:00 2001 From: RabsRincon Date: Wed, 10 Apr 2019 16:23:45 +0200 Subject: [PATCH] Update available libs on lang change Fixes #1347 (Thanks @hanickadot!) --- static/libs-widget.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/libs-widget.js b/static/libs-widget.js index b34ae2717..59978104d 100644 --- a/static/libs-widget.js +++ b/static/libs-widget.js @@ -69,6 +69,8 @@ LibsWidget.prototype.updateAvailableLibs = function () { LibsWidget.prototype.setNewLangId = function (langId) { this.currentLangId = langId; + this.updateAvailableLibs(); + }; LibsWidget.prototype.lazyDropdownLoad = function () {