@@ -61,8 +61,16 @@ Ggrach.Utils.User = {
6161
6262Ggrach . Utils . DOM = {
6363
64+ hideOverlay : function ( ) {
65+ Ggrach . Utils . DOM . getOverlay ( ) . style . display = 'none' ;
66+ } ,
67+
68+ showOverlay : function ( ) {
69+ Ggrach . Utils . DOM . getOverlay ( ) . style . display = 'block' ;
70+ } ,
71+
6472 getDebugBarLogsType : function ( type ) {
65- return document . querySelector ( '.ggrach__debug_bar__log[data-type-notice="' + type + '"]' )
73+ return document . querySelector ( '.ggrach__debug_bar__log[data-type-notice="' + type + '"]' ) ;
6674 } ,
6775
6876 getDebugBarLogs : function ( ) {
@@ -82,7 +90,7 @@ Ggrach.Handlers = {
8290
8391 // Нажатие клавиши esc
8492 onKeyEsc : function ( e ) {
85- if ( ( e . key == 'Escape' || e . key == 'Esc' || e . keyCode == 27 ) && ( e . target . nodeName == 'BODY' ) ) {
93+ if ( ( e . key === 'Escape' || e . key === 'Esc' || e . keyCode == 27 ) && ( e . target . nodeName = == 'BODY' ) ) {
8694
8795 if ( document . querySelector ( '[data-type-notice].active' ) )
8896 {
@@ -116,13 +124,13 @@ Ggrach.Handlers = {
116124 e . target . classList . remove ( 'active' ) ;
117125 document . querySelector ( 'body' ) . style . overflow = null ;
118126 $targetLogPanel . style . display = 'none' ;
119- Ggrach . Utils . DOM . getOverlay ( ) . style . display = 'none' ;
127+ Ggrach . Utils . DOM . hideOverlay ( ) ;
120128 } else
121129 {
122130 e . target . classList . add ( 'active' ) ;
123131 document . querySelector ( 'body' ) . style . overflow = 'hidden' ;
124132 $targetLogPanel . style . display = 'block' ;
125- Ggrach . Utils . DOM . getOverlay ( ) . style . display = 'block' ;
133+ Ggrach . Utils . DOM . showOverlay ( ) ;
126134 }
127135 }
128136} ;
0 commit comments