diff --git a/beat/web/experiments/static/experiments/js/panels.js b/beat/web/experiments/static/experiments/js/panels.js index e8775f77790bcc111ecf9f395dbcc42ef61b61bb..19b38c2eac08af42f5854613e3cece12685ea5d5 100644 --- a/beat/web/experiments/static/experiments/js/panels.js +++ b/beat/web/experiments/static/experiments/js/panels.js @@ -1,21 +1,21 @@ /* * Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/ * Contact: beat.support@idiap.ch - * + * * This file is part of the beat.web module of the BEAT platform. - * + * * Commercial License Usage * Licensees holding valid commercial BEAT licenses may use this file in * accordance with the terms contained in a written agreement between you * and Idiap. For further information contact tto@idiap.ch - * + * * Alternatively, this file may be used under the terms of the GNU Affero * Public License version 3 as published by the Free Software and appearing * in the file LICENSE.AGPL included in the packaging of this file. * The BEAT platform is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. - * + * * You should have received a copy of the GNU Affero Public License along * with the BEAT platform. If not, see http://www.gnu.org/licenses/. */ @@ -1927,8 +1927,11 @@ beat.experiments.panels.Parameters.prototype._createBoolControls = function( { var panel = this; + var div = document.createElement('div'); + div.className = 'checkbox'; + cell.appendChild(div); + var input = document.createElement('input'); - input.className = 'form-control input-sm'; input.type = 'checkbox'; cell.appendChild(input); @@ -1937,6 +1940,11 @@ beat.experiments.panels.Parameters.prototype._createBoolControls = function( reset_button.controls.push(input); + var span = document.createElement('span'); + span.className = 'help'; + span.innerHTML = '(' + parameter.type + ')'; + cell.appendChild(span); + input.checked = (parameter_values[parameter.name] !== undefined ? parameter_values[parameter.name] : parameter.default_value); $(input).change(function() {