Вход Регистрация
Файл: admin/applications/members/js/acp.banfilters.js
Строк: 50
<?php
/************************************************/
/* IPB3 Javascript                                */
/* -------------------------------------------- */
/* acp.banfilters.js - Banfilters functions        */
/* (c) IPS, Inc 2011                            */
/* -------------------------------------------- */
/* Author: Terabyte                             */
/************************************************/

var _banfilters window.IPBACP;
_banfilters.prototype.banfilters = {
    
popupsnull,
    
    
init: function()
    {
        
Debug.write("Initializing acp.banfilters.js");
        
document.observe("dom:loaded", function(){
            
/* Setup add filter button */
            
if( $('add_banfilter') )
            {
                $(
'add_banfilter').observe'click'acp.banfilters.addNewFilter );
            }
            
            
/* Setup delete form */
            
if( $('ban-delete') )
            {
                $(
'ban-delete').observe'submit', function( ){ 
                    var 
checkboxes = $('ban-delete').getElementsByTagName('input');
                    
                    for( var 
0checkboxes.lengthi++ )
                    {
                        if( 
checkboxes[i].checked )
                        {
                            return 
true;
                        }
                    }
                    
                    
alertipb.lang['no_ban_to_delete'] );
                    
                    
Event.stop);
                });
            }
        });
    },
    
    
addNewFilter: function( )
    {
        
Event.stop(e);
        
        if( 
acp.banfilters.popup )
        {
            
acp.banfilters.popup.show();
        }
        else
        {
            
acp.banfilters.popup = new ipb.Popup('add_banfilter_popup', { type'pane'modalfalsehideAtStartfalsew'600px'initialipb.templates['add_banfilter'] } );
        }
    }
};

acp.banfilters.init();
?>
Онлайн: 2
Реклама