File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 var success = args . response . success ;
55 var context = args . context ;
66 var network = args . context . networks [ 0 ] ;
7+ var $item = args . $item ;
78
89 var lbService = $ . grep ( network . service , function ( service ) {
910 return service . name == 'Lb' ;
110111 } ,
111112 after : function ( args ) {
112113 var data = cloudStack . serializeForm ( args . $form ) ;
113- success ( {
114- data : $ . extend ( data , {
115- _buttonLabel : data . methodname . toUpperCase ( )
116- } )
117- } ) ;
114+
115+ if ( $item ) {
116+ debugger ;
117+ $ . ajax ( {
118+ url : createURL ( '' )
119+ } ) ;
120+
121+ $ ( window ) . trigger ( 'cloudStack.fullRefresh' ) ;
122+ } else {
123+ success ( {
124+ data : $ . extend ( data , {
125+ _buttonLabel : data . methodname
126+ } )
127+ } ) ;
128+ }
118129 }
119130 } ) ;
120131 } ;
Original file line number Diff line number Diff line change 12471247 isstaticnat : true
12481248 }
12491249 } ) ;
1250+
1251+ setTimeout ( function ( ) {
1252+ $ ( window ) . trigger ( 'cloudStack.fullRefresh' ) ;
1253+ } , 500 ) ;
12501254 }
12511255 }
12521256 } ,
19881992
19891993 if ( stickyPolicy && stickyPolicy . length ) {
19901994 stickyPolicy = stickyPolicy [ 0 ] ;
1991-
1995+
1996+ if ( ! stickyPolicy . methodname ) stickyPolicy . methodname = 'None' ;
1997+
19921998 stickyData = {
1993- _buttonLabel : 'lb' . toUpperCase ( ) ,
1994- method : 'lb' ,
1995- name : 'StickyTest' ,
1996- mode : '123' ,
1997- nocache : true ,
1998- indirect : false ,
1999- postonly : true ,
2000- domain : false
1999+ _buttonLabel : stickyPolicy . methodname ,
2000+ methodname : stickyPolicy . methodname ,
2001+ id : stickyPolicy . id
20012002 } ;
2003+ $ . extend ( stickyData , stickyPolicy . params ) ;
20022004 } else {
20032005 stickyData = { } ;
20042006 }
Original file line number Diff line number Diff line change 7878 . click ( function ( ) {
7979 var $button = $ ( this ) ;
8080 field . custom . action ( {
81- context : { } ,
81+ context : options . context ? options . context : cloudStack . context ,
8282 data : $td . data ( 'multi-custom-data' ) ,
83+ $item : $td ,
8384 response : {
8485 success : function ( args ) {
8586 if ( args . data [ '_buttonLabel' ] ) {
You can’t perform that action at this time.
0 commit comments