File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 188188
189189 if ( section . listView ) {
190190 $section . listView ( $ . extend ( true , { } , section , {
191+ onActionComplete : function ( ) {
192+ $dashboardItem . closest ( '.vpc-network-chart' ) . trigger ( 'reload' ) ;
193+ } ,
191194 context : context
192195 } ) ) ;
193196 }
Original file line number Diff line number Diff line change 104104 cloudStack . ui . notifications . add (
105105 notification ,
106106 function ( args ) {
107+ if ( listViewArgs . onActionComplete ) {
108+ listViewArgs . onActionComplete ( ) ;
109+ }
110+
107111 if ( $item . is ( ':visible' ) && ! isHeader ) {
108112 replaceItem (
109113 $item ,
175179
176180 if ( additional && additional . success ) additional . success ( args ) ;
177181
182+ if ( listViewArgs . onActionComplete == true ) {
183+ listViewArgs . onActionComplete ( ) ;
184+ }
185+
178186 cloudStack . ui . notifications . add (
179187 notification ,
180188
213221 if ( options . complete ) {
214222 options . complete ( args ) ;
215223 }
224+
225+ if ( listViewArgs . onActionComplete ) {
226+ listViewArgs . onActionComplete ( ) ;
227+ }
216228 } ,
217229
218230 { } ,
11871199 $quickViewTooltip . hide ( ) ;
11881200 } ,
11891201 onActionComplete : function ( ) {
1202+ if ( listViewArgs . onActionComplete ) {
1203+ listViewArgs . onActionComplete ( ) ;
1204+ }
1205+
11901206 $tr . removeClass ( 'loading' ) . find ( 'td:last .loading' ) . remove ( ) ;
11911207 $quickViewTooltip . remove ( ) ;
11921208 }
17981814 } ) ;
17991815 }
18001816
1817+ detailViewArgs . data . onActionComplete = listViewArgs . onActionComplete ;
1818+
18011819 createDetailView (
18021820 detailViewArgs ,
18031821 function ( $detailView ) { //complete(), callback funcion
You can’t perform that action at this time.
0 commit comments