|
|
|
|
@ -370,6 +370,14 @@ define(["widgets/js/manager",
|
|
|
|
|
// By default, this is only called the first time the view is created
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
show: function(){
|
|
|
|
|
// Show the widget-area
|
|
|
|
|
if (this.options && this.options.cell &&
|
|
|
|
|
this.options.cell.widget_area !== undefined) {
|
|
|
|
|
this.options.cell.widget_area.show();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
send: function (content) {
|
|
|
|
|
// Send a custom msg associated with this view.
|
|
|
|
|
this.model.send(content, this.callbacks());
|
|
|
|
|
@ -390,6 +398,7 @@ define(["widgets/js/manager",
|
|
|
|
|
this.model.on('change', this.update, this);
|
|
|
|
|
this.model.on('msg:custom', this.on_msg, this);
|
|
|
|
|
DOMWidgetView.__super__.initialize.apply(this, arguments);
|
|
|
|
|
this.on('displayed', this.show, this);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
on_msg: function(msg) {
|
|
|
|
|
|