File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -223,14 +223,14 @@ <h1 class="logo"><a href="/">Vesta panel <span> </span></a></h1>
223223 < div class ="b-cust-sel complex-select c-s-opt ">
224224 < input type ="hidden " name ="" value ="" class ="c-s-value-ref ">
225225 < span class ="title c-s-opt c-s-title do_action_toggle_custom_select "> Action</ span >
226- < div class ="cust-sel-arrow do_action_toggle_custom_select c-s-opt "> < i > </ i > </ div >
226+ < div class ="cust-sel-arrow do_action_toggle_custom_select c-s-opt "> < i class =" do_action_toggle_custom_select " > </ i > </ div >
227227 < div class ="cust-sel-options complex-select-content c-s-opt hidden ">
228- < div class ="cust-sel-option ico_gray c-s-opt do_action_update_cs_value ">
228+ < div class ="cust-sel-option ico_gray c-s-opt do_action_update_cs_value ">
229229 < input type ="hidden " class ="c-s-value " value ="Suspend ">
230230 Suspend
231231 </ div >
232232 < div class ="cust-sel-option ico_green c-s-opt do_action_update_cs_value ">
233- < input type ="hidden " class ="c-s-value " value ="Unsuspended ">
233+ < input type ="hidden " class ="c-s-value " value ="Unsuspend ">
234234 Unsuspend
235235 </ div >
236236 < div class ="cust-sel-option ico_red c-s-opt do_action_update_cs_value ">
Original file line number Diff line number Diff line change @@ -36,10 +36,13 @@ App.Actions.update_cs_value = function(evt)
3636 var elm = $ ( evt . target ) ;
3737 elm = elm . hasClass ( 'cust-sel-option' ) ? elm : elm . parents ( '.cust-sel-option' ) ;
3838
39- var val = elm . find ( '.c-s-value' ) . val ( ) ; fb . log ( val ) ;
40- elm . parents ( '.c-s-box' ) . find ( '.c-s-title' ) . text ( val ) ;
41- elm . parents ( '.c-s-box' ) . find ( '.c-s-value-ref' ) . val ( val ) ;
39+ var val = elm . find ( '.c-s-value' ) . val ( ) ;
4240 $ ( '.complex-select-content' ) . addClass ( 'hidden' ) ;
41+
42+ if ( App . Tmp [ App . Env . world + '_selected_records' ] > 0 ) {
43+ var confirm_message_key = App . Tmp [ App . Env . world + '_selected_records' ] == 1 ? 1 + ' record' : App . Tmp [ App . Env . world + '_selected_records' ] + ' records' ;
44+ var confirmed = confirm ( 'This action will ' + val . toLowerCase ( ) + ' ' + confirm_message_key + '. Do you want to proceede?' ) ;
45+ }
4346}
4447
4548App . Actions . do_change_password = function ( )
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ App.View.popup = function(content)
66 }
77
88 tpl . set ( ':content' , content ) ;
9+ tpl . set ( ':STYLE' , 'height:' + $ ( window ) . height ( ) + 'px' ) ;
910 $ ( '#popup-bg, #popup' ) . remove ( ) ;
1011 $ ( document . body ) . append ( tpl . finalize ( ) ) ;
1112}
You can’t perform that action at this time.
0 commit comments