File tree Expand file tree Collapse file tree 2 files changed +36
-190
lines changed Expand file tree Collapse file tree 2 files changed +36
-190
lines changed Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 1+ /* Icinga DB Web | (c) 2024 Icinga GmbH | GPLv2 */ 
2+ 
3+ ( function  ( Icinga ,  $ )  { 
4+ 
5+     "use strict" ; 
6+ 
7+     class  IcingaDB  { 
8+         /** 
9+          * Constructor 
10+          * 
11+          * @param  {Icinga.Module } module 
12+          */ 
13+         constructor ( module )  { 
14+             try  { 
15+                 let  Class  =  require ( "icinga/icinga-php-library/compat/ActionListBehavior" ) ; 
16+                 let  behavior  =  new  Class ( module . icinga ) ; 
17+                 module . icinga . behaviors [ Class . name . toLowerCase ( ) ]  =  behavior ; 
18+                 behavior . bind ( $ ( document ) ) ; 
19+ 
20+                 Class  =  require ( "icinga/icinga-php-library/compat/LoadMoreBehavior" ) ; 
21+                 behavior  =  new  Class ( module . icinga ) ; 
22+                 module . icinga . behaviors [ Class . name . toLowerCase ( ) ]  =  behavior ; 
23+                 behavior . bind ( $ ( document ) ) ; 
24+ 
25+             }  catch  ( e )  { 
26+                 console . warn ( 'Unable to provide behaviors. Libraries not available:' ,  e ) ; 
27+                 return ; 
28+             } 
29+ 
30+             this . icinga  =  module . icinga ; 
31+         } 
32+     } 
33+ 
34+     Icinga . availableModules . icingadb  =  IcingaDB ; 
35+ 
36+ } ) ( Icinga ,  jQuery ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments