Вход Регистрация
Файл: static/plugins/base/js/drag_and_drop_handler.js
Строк: 123
<?php
PEEP_Components_DragAndDropAjaxHandler 
= function(urlRespondersharedData) {
    
this.ajax = new PEEP_Component_Ajax(urlResponder);
    
this.sharedData sharedData;
};

PEEP_Components_DragAndDropAjaxHandler.prototype = {

    
getParams: function(params) {
        return $.
extend({}, this.sharedDataparams);
    },

    
changeState: function( sectionNameitemStack) {
        
this.ajax.addRequest('saveComponentPlacePositions'this.getParams({
            
stackitemStack,
            
sectionsectionName
        
}));
    },

        clone: function(
sectionstackidsuccess) {
            
this.ajax.send('cloneComponent'this.getParams({
                
sectionsection,
                
componentIdid,
                
stackstack
            
}), success);
        },

        
remove: function(id) {
             
this.ajax.send('deleteComponent'this.getParams({
                
componentIdid
            
}));
        },

        
loadSettings: function(idsuccessFunction) {
             
this.ajax.send('getSettingsMarkup'this.getParams({
                
componentIdid
            
}), successFunction);
        },

        
saveSettings: function(idsettings successFunction) {
             
this.ajax.addRequest('saveSettings'this.getParams({
                
componentIdid,
                
settingssettings
            
}), successFunction);
        },

        
saveScheme: function(scheme successFunction) {
             
this.ajax.send('savePlaceScheme'this.getParams({
                
schemescheme
            
}), successFunction);
        },

        
moveToPanel: function(idsuccessFunction) {
            
this.ajax.addRequest('moveComponentToPanel'this.getParams({
                
componentIdid
            
}), successFunction);
        },

        
complete: function(successFunction) {
            
this.ajax.sendQueue(successFunction);
        },

        
reload: function( idrenderViewsuccessFunction )
        {
            
this.ajax.addRequest('reload'this.getParams({
                
componentIdid,
                
renderrenderView
            
}), successFunction);
        },

        
allowCustomize: function( statesuccessFunction ) {
             
this.ajax.send('allowCustomize'this.getParams({
                     
statestate
               
}), successFunction);
        },

        
reset: function( successFunction ) {
             
this.ajax.send('reset'this.getParams({}), successFunction);
        }
};
?>
Онлайн: 1
Реклама