File tree Expand file tree Collapse file tree
frontend/src/modules/projects/views Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,10 @@ define(function(require) {
9797
9898 deleteProject : function ( event ) {
9999 this . model . destroy ( {
100- success : _ . bind ( this . remove , this ) ,
100+ success : _ . bind ( function ( ) {
101+ Origin . trigger ( 'dashboard:refresh' ) ;
102+ this . remove ( ) ;
103+ } , this ) ,
101104 error : function ( model , response , options ) {
102105 _ . delay ( function ( ) {
103106 Origin . Notify . alert ( { type : 'error' , text : response . responseJSON . message } ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ define(function(require){
2828 this . _onResize = _ . bind ( _ . debounce ( this . onResize , 250 ) , this ) ;
2929
3030 this . listenTo ( Origin , {
31- 'window:resize' : this . _onResize ,
31+ 'window:resize dashboard:refresh ' : this . _onResize ,
3232 'dashboard:dashboardSidebarView:filterBySearch' : function ( text ) { this . doFilter ( text ) } ,
3333 'dashboard:dashboardSidebarView:filterByTags' : function ( tags ) { this . doFilter ( null , tags ) } ,
3434 'dashboard:sort:asc' : function ( ) { this . doSort ( 'asc' ) ; } ,
You can’t perform that action at this time.
0 commit comments