@@ -53,16 +53,19 @@ App.Actions.update_cs_value = function(evt)
5353App . Actions . mass_delete = function ( )
5454{
5555 App . Actions . mass_action ( 'massiveDelete' ) ;
56+ App . Actions . reset_batch ( ) ;
5657}
5758
5859App . Actions . mass_suspend = function ( )
5960{
6061 App . Actions . mass_action ( 'massiveSuspend' ) ;
62+ App . Actions . reset_batch ( ) ;
6163}
6264
6365App . Actions . mass_unsuspend = function ( )
6466{
6567 App . Actions . mass_action ( 'massiveUnsuspend' ) ;
68+ App . Actions . reset_batch ( ) ;
6669}
6770
6871App . Actions . mass_action = function ( method_name )
@@ -80,6 +83,13 @@ App.Actions.mass_action = function(method_name)
8083 }
8184}
8285
86+ App . Actions . reset_batch = function ( )
87+ {
88+ $ ( '#batch-processor .selector-title' ) . html ( 'NONE' ) ;
89+ $ ( '.styled.do_action_toggle_batch_selector.style-applied' ) . attr ( 'checked' , false ) ;
90+ $ ( '.checkbox.do_action_toggle_batch_selector' ) . css ( 'background-position' , '0 0' ) ;
91+ }
92+
8393App . Actions . do_change_password = function ( )
8494{
8595
@@ -533,7 +543,7 @@ App.Actions.add_form_ns = function(evt)
533543
534544 $ ( form ) . find ( '.ns-entry' ) . each ( function ( i , o )
535545 {
536- $ ( o ) . find ( 'label' ) . text ( 'NameServer #' + ( i + 1 ) ) ;
546+ $ ( o ) . find ( 'label' ) . text ( 'NS #' + ( i + 1 ) ) ;
537547 $ ( o ) . find ( 'input' ) . attr ( 'name' , 'NS' + ( i + 1 ) ) ;
538548 } ) ;
539549}
@@ -581,7 +591,7 @@ App.Actions.view_template_info = function(evt)
581591 $ . each ( reply . data , function ( key ) {
582592 html += '<li><strong>' + key + ':</strong> ' + reply . data [ key ] + '</li>' ;
583593 } ) ;
584- App . Helpers . openInnerPopup ( elm , '<ul>' + html + '</ul>' , 'Template Settings ' ) ;
594+ App . Helpers . openInnerPopup ( elm , '<ul>' + html + '</ul>' , 'Template Info ' ) ;
585595 }
586596 } ) ;
587597}
0 commit comments