qgis/qgis-web-client — pull request #6 by bstroebl (2012-11-05 12:34:16+00:00)
Title: Fix Ticket #6252 "Legend shows all active layers"

New functions in WebgisInit.js handle clicks on layer visibility and
size the legend tab according to its contents.
Tests showed that around 40 layers cannot be handled by QGIS server in a
user friendly respond time (server has to render the maps, too).
Therefore a maximum amount of layers shown in the legend can be set in
GlobalOptions.js. Variable legend_length has been added to
GloblaOptions.js.templ*.