Show More
@@ -86,6 +86,7 b'' | |||||
86 | cell.widget_area.show(); |
|
86 | cell.widget_area.show(); | |
87 | this._handle_display_view(view); |
|
87 | this._handle_display_view(view); | |
88 | cell.widget_subarea.append(view.$el); |
|
88 | cell.widget_subarea.append(view.$el); | |
|
89 | view.trigger('displayed'); | |||
89 | } |
|
90 | } | |
90 | } |
|
91 | } | |
91 | }; |
|
92 | }; |
@@ -83,7 +83,6 b' function(WidgetManager, _, Backbone){' | |||||
83 | break; |
|
83 | break; | |
84 | case 'display': |
|
84 | case 'display': | |
85 | this.widget_manager.display_view(msg, this); |
|
85 | this.widget_manager.display_view(msg, this); | |
86 | this.trigger('displayed'); |
|
|||
87 | break; |
|
86 | break; | |
88 | } |
|
87 | } | |
89 | }, |
|
88 | }, |
@@ -30,11 +30,11 b' define(["widgets/js/widget"], function(WidgetManager) {' | |||||
30 | // Trigger model displayed events for any models that are child to |
|
30 | // Trigger model displayed events for any models that are child to | |
31 | // this model when this model is displayed. |
|
31 | // this model when this model is displayed. | |
32 | var that = this; |
|
32 | var that = this; | |
33 |
this |
|
33 | this.on('displayed', function(){ | |
34 | that.is_displayed = true; |
|
34 | that.is_displayed = true; | |
35 | for (var property in that.child_views) { |
|
35 | for (var property in that.child_views) { | |
36 | if (that.child_views.hasOwnProperty(property)) { |
|
36 | if (that.child_views.hasOwnProperty(property)) { | |
37 |
that.child_views[property]. |
|
37 | that.child_views[property].trigger('displayed'); | |
38 | } |
|
38 | } | |
39 | } |
|
39 | } | |
40 | }); |
|
40 | }); | |
@@ -60,7 +60,7 b' define(["widgets/js/widget"], function(WidgetManager) {' | |||||
60 |
|
60 | |||
61 | // Trigger the displayed event if this model is displayed. |
|
61 | // Trigger the displayed event if this model is displayed. | |
62 | if (this.is_displayed) { |
|
62 | if (this.is_displayed) { | |
63 |
|
|
63 | view.trigger('displayed'); | |
64 | } |
|
64 | } | |
65 | }, |
|
65 | }, | |
66 |
|
66 | |||
@@ -192,11 +192,11 b' define(["widgets/js/widget"], function(WidgetManager) {' | |||||
192 |
|
192 | |||
193 | // Trigger model displayed events for any models that are child to |
|
193 | // Trigger model displayed events for any models that are child to | |
194 | // this model when this model is displayed. |
|
194 | // this model when this model is displayed. | |
195 |
this |
|
195 | this.on('displayed', function(){ | |
196 | that.is_displayed = true; |
|
196 | that.is_displayed = true; | |
197 | for (var property in that.child_views) { |
|
197 | for (var property in that.child_views) { | |
198 | if (that.child_views.hasOwnProperty(property)) { |
|
198 | if (that.child_views.hasOwnProperty(property)) { | |
199 |
that.child_views[property]. |
|
199 | that.child_views[property].trigger('displayed'); | |
200 | } |
|
200 | } | |
201 | } |
|
201 | } | |
202 | }); |
|
202 | }); | |
@@ -264,7 +264,7 b' define(["widgets/js/widget"], function(WidgetManager) {' | |||||
264 |
|
264 | |||
265 | // Trigger the displayed event if this model is displayed. |
|
265 | // Trigger the displayed event if this model is displayed. | |
266 | if (this.is_displayed) { |
|
266 | if (this.is_displayed) { | |
267 |
|
|
267 | view.trigger('displayed'); | |
268 | } |
|
268 | } | |
269 | }, |
|
269 | }, | |
270 |
|
270 |
@@ -36,14 +36,14 b' define(["widgets/js/widget"], function(WidgetManager){' | |||||
36 | this.update_titles(value); |
|
36 | this.update_titles(value); | |
37 | }, this); |
|
37 | }, this); | |
38 | var that = this; |
|
38 | var that = this; | |
39 |
this |
|
39 | this.on('displayed', function() { | |
40 | this.update_titles(); |
|
40 | this.update_titles(); | |
41 | // Trigger model displayed events for any models that are child to |
|
41 | // Trigger model displayed events for any models that are child to | |
42 | // this model when this model is displayed. |
|
42 | // this model when this model is displayed. | |
43 | that.is_displayed = true; |
|
43 | that.is_displayed = true; | |
44 | for (var property in that.child_views) { |
|
44 | for (var property in that.child_views) { | |
45 | if (that.child_views.hasOwnProperty(property)) { |
|
45 | if (that.child_views.hasOwnProperty(property)) { | |
46 |
that.child_views[property]. |
|
46 | that.child_views[property].trigger('displayed'); | |
47 | } |
|
47 | } | |
48 | } |
|
48 | } | |
49 | }, this); |
|
49 | }, this); | |
@@ -137,7 +137,7 b' define(["widgets/js/widget"], function(WidgetManager){' | |||||
137 |
|
137 | |||
138 | // Trigger the displayed event if this model is displayed. |
|
138 | // Trigger the displayed event if this model is displayed. | |
139 | if (this.is_displayed) { |
|
139 | if (this.is_displayed) { | |
140 |
|
|
140 | view.trigger('displayed'); | |
141 | } |
|
141 | } | |
142 | }, |
|
142 | }, | |
143 | }); |
|
143 | }); | |
@@ -170,11 +170,11 b' define(["widgets/js/widget"], function(WidgetManager){' | |||||
170 |
|
170 | |||
171 | // Trigger model displayed events for any models that are child to |
|
171 | // Trigger model displayed events for any models that are child to | |
172 | // this model when this model is displayed. |
|
172 | // this model when this model is displayed. | |
173 |
this |
|
173 | this.on('displayed', function(){ | |
174 | that.is_displayed = true; |
|
174 | that.is_displayed = true; | |
175 | for (var property in that.child_views) { |
|
175 | for (var property in that.child_views) { | |
176 | if (that.child_views.hasOwnProperty(property)) { |
|
176 | if (that.child_views.hasOwnProperty(property)) { | |
177 |
that.child_views[property]. |
|
177 | that.child_views[property].trigger('displayed'); | |
178 | } |
|
178 | } | |
179 | } |
|
179 | } | |
180 | }); |
|
180 | }); | |
@@ -233,7 +233,7 b' define(["widgets/js/widget"], function(WidgetManager){' | |||||
233 |
|
233 | |||
234 | // Trigger the displayed event if this model is displayed. |
|
234 | // Trigger the displayed event if this model is displayed. | |
235 | if (this.is_displayed) { |
|
235 | if (this.is_displayed) { | |
236 |
|
|
236 | view.trigger('displayed'); | |
237 | } |
|
237 | } | |
238 | }, |
|
238 | }, | |
239 |
|
239 |
General Comments 0
You need to be logged in to leave comments.
Login now