1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/def038539c98/ Changeset: def038539c98 User: guerler Date: 2014-03-08 08:12:43 Summary: Charts: Add title to configuration panel Affected #: 4 files diff -r a384ace015505cdea2dafa907a04e9689aa4ec20 -r def038539c985774345ae0a7382c61b9d3dfde6e config/plugins/visualizations/charts/static/charts/histogram/config.js --- a/config/plugins/visualizations/charts/static/charts/histogram/config.js +++ b/config/plugins/visualizations/charts/static/charts/histogram/config.js @@ -9,8 +9,17 @@ } }, settings : { + x_axis_label : { + init : 'Breaks' + }, + y_axis_label : { + init : 'Density' + }, + y_axis_tick : { + init : '.3' + }, separator_custom : { - title : 'Histogram settings', + title : 'Advanced', type : 'separator' }, bin_size : { diff -r a384ace015505cdea2dafa907a04e9689aa4ec20 -r def038539c985774345ae0a7382c61b9d3dfde6e config/plugins/visualizations/charts/static/library/ui-table-form.js --- a/config/plugins/visualizations/charts/static/library/ui-table-form.js +++ b/config/plugins/visualizations/charts/static/library/ui-table-form.js @@ -8,17 +8,23 @@ // initialize initialize: function(options) { // ui elements + this.table_title = new Ui.Label({title: options.title}); this.table = new Table({content: options.content}); // create element var $view = $('<div/>'); - $view.append(Utils.wrap((new Ui.Label({title: options.title})).$el)); + $view.append(Utils.wrap(this.table_title.$el)); $view.append(Utils.wrap(this.table.$el)); // add element this.setElement($view); }, + // title + title: function(new_title) { + this.table_title.title(new_title); + }, + // update update: function(settings, model) { // reset table diff -r a384ace015505cdea2dafa907a04e9689aa4ec20 -r def038539c985774345ae0a7382c61b9d3dfde6e config/plugins/visualizations/charts/static/library/ui.js --- a/config/plugins/visualizations/charts/static/library/ui.js +++ b/config/plugins/visualizations/charts/static/library/ui.js @@ -18,6 +18,11 @@ this.setElement(this._template(this.options)); }, + // title + title: function(new_title) { + this.$el.find('b').html(new_title); + }, + // template _template: function(options) { return '<label><b>' + options.title + '</b></label>'; diff -r a384ace015505cdea2dafa907a04e9689aa4ec20 -r def038539c985774345ae0a7382c61b9d3dfde6e config/plugins/visualizations/charts/static/views/settings.js --- a/config/plugins/visualizations/charts/static/views/settings.js +++ b/config/plugins/visualizations/charts/static/views/settings.js @@ -40,9 +40,13 @@ if (!chart_type) { return; } + // get settings + var chart_definition = this.app.types.get(chart_type); + + // set title + this.form.title(chart_definition.title + ':'); // update table form model - var chart_definition = this.app.types.get(chart_type); this.form.update(chart_definition.settings, this.chart.settings); } }); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.