commit/galaxy-central: guerler: Charts: Remove message box
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/f573461f3667/ Changeset: f573461f3667 User: guerler Date: 2014-02-24 08:47:45 Summary: Charts: Remove message box Affected #: 2 files diff -r dc448888a8651b5555f54e838532ab09e0248cbd -r f573461f3667e8f120dc05bbd11a019d5fae1960 config/plugins/visualizations/charts/static/app.js --- a/config/plugins/visualizations/charts/static/app.js +++ b/config/plugins/visualizations/charts/static/app.js @@ -79,7 +79,11 @@ // refresh title _refreshTitle: function() { - this.portlet.title('Charts - ' + this.config.get('title')); + var title = this.config.get('title'); + if (title) { + title = ' - ' + title; + } + this.portlet.title('Charts' + title); }, // current view diff -r dc448888a8651b5555f54e838532ab09e0248cbd -r f573461f3667e8f120dc05bbd11a019d5fae1960 config/plugins/visualizations/charts/static/views/chart.js --- a/config/plugins/visualizations/charts/static/views/chart.js +++ b/config/plugins/visualizations/charts/static/views/chart.js @@ -253,7 +253,7 @@ this.chart.set('id', Utils.uuid()); this.chart.set('dataset_id', this.app.options.dataset.id); this.chart.set('type', 'bardiagram'); - this.chart.set('title', 'Chart title'); + this.chart.set('title', 'New Chart'); }, // create chart @@ -266,22 +266,6 @@ date : Utils.time() }); - // validate - if (!this.chart.get('title')) { - this.message.update({message : 'Please enter a title for your chart.'}); - return; - } - - if (!this.chart.get('type')) { - this.message.update({message : 'Please select a chart type.'}); - return; - } - - if (this.chart.groups.length == 0) { - this.message.update({message : 'Please configure at least one data source.'}); - return; - } - // create/get chart var current = this.app.charts.get(this.chart.id); if (!current) { 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.
participants (1)
-
commits-noreply@bitbucket.org