Вход Регистрация
Файл: IPBMafia.ru_IPB_3.4.6_Final_Rus _Nulled/board/upload/admin/js/acp.skinsets.js
Строк: 52
<?php
/************************************************/
/* IPB3 Javascript                                */
/* -------------------------------------------- */
/* acp.replacements.js - Replacements functions    */
/* (c) IPS, Inc 2008                            */
/* -------------------------------------------- */
/* Author: Rikki Tissier                        */
/************************************************/

ACPSkinSets = {
    
    
/* ------------------------------ */
    /**
     * Setup
    */
    
init: function()
    {
        
document.observe("dom:loaded", function(){
        
            $(
'ipsNewSkin').on('click'this.showAddDialogue.bindAsEventListener(this) );
            
            
ipb.delegate.register(".ipsCancelEditor"ACPSkinSets.showCancelDialogue );
            
        }.
bind(this) );
    },
    
    
/**
     * Show cancel dialogue
     */
    
showCancelDialogue: function( eelem )
    {
        
Event.stop(e);
        
        new 
ipb.Popup'cancel_editor', {  type'pane',
                                           
initialcancelEditorDialogue.evaluate( { 'url'elem.readAttribute('href') } ),
                                           
stemfalse,
                                           
modaltrue,
                                           
hideAtStartfalse,
                                           
hideClosefalse,
                                           
deferfalse,
                                           
w400 } );
    },
    
    
/**
     * Fetch and show the pop-up dialogue
     */
    
showAddDialogue: function(e)
    {
        
Event.stop(e);
        
        var 
url     =  ipb.vars['base_url'] + "app=core&amp;module=ajax&amp;section=skinsets&amp;do=showAddDialogue&amp;secure_key=" ipb.vars['md5_hash'];
        
        
// Send
        
new Ajax.Requesturl.replace(/&amp;/g'&'),
                        {
                            
method'get',
                            
onSuccess: function(t)
                            {
                                if ( 
t.responseText )
                                {
                                    
/* Load */
                                    
new ipb.Popup'nooSkin', {  type'pane',
                                                                 
initialt.responseText,
                                                                 
modaltrue,
                                                                 
stemtrue,
                                                                 
hideAtStartfalse,
                                                                 
hideClosefalse,
                                                                 
deferfalse,
                                                                 
w400 } );
                                }
                            }
                        });
    },    
};

ACPSkinSets.init();
?>
Онлайн: 1
Реклама