mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Instantly refresh visualizations on setting changes
This commit is contained in:
@@ -66,12 +66,13 @@ var GroupView = Backbone.View.extend({
|
||||
cls: "ui-portlet-plain",
|
||||
onchange: function() {
|
||||
self.group.set(self.form.data.create());
|
||||
self.chart.set("modified", true);
|
||||
self.chart.trigger("redraw");
|
||||
}
|
||||
});
|
||||
self.group.set(self.form.data.create());
|
||||
self.$el.empty().append(self.form.$el);
|
||||
process.resolve();
|
||||
self.chart.trigger("redraw");
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -105,8 +106,8 @@ export default Backbone.View.extend({
|
||||
this.listenTo(this.chart, "change", function() {
|
||||
self.render();
|
||||
});
|
||||
this.listenTo(this.chart.groups, "add remove reset", function() {
|
||||
self.chart.set("modified", true);
|
||||
this.listenTo(this.chart.groups, "remove reset", function() {
|
||||
self.chart.trigger("redraw")
|
||||
});
|
||||
this.listenTo(this.chart.groups, "remove", function(group) {
|
||||
self.repeat.del(group.id);
|
||||
|
||||
@@ -39,6 +39,7 @@ export default Backbone.View.extend({
|
||||
cls: "ui-portlet-plain",
|
||||
onchange: function() {
|
||||
self.chart.settings.set(self.form.data.create());
|
||||
self.chart.trigger("redraw");
|
||||
}
|
||||
});
|
||||
this.chart.settings.set(this.form.data.create());
|
||||
|
||||
Reference in New Issue
Block a user