Вход Регистрация
Файл: concrete5.7.5.6/concrete/js/build/core/app/edit-mode/stackblock.js
Строк: 52
<?php
(function (window, $, _Concrete) {
    
'use strict';

    
/**
     * StackBlock object used only in panels. This allows us to drag blocks out from a stack panel.
     * @type {Function}
     */
    
var StackBlock Concrete.StackBlock = function StackBlock(elemstackedit_modedragger) {
        
this.init.apply(this_.toArray(arguments));
    };

    
StackBlock.prototype _.extend(Object.create(Concrete.BlockType.prototype), {

        
init: function stackBlockInit(elemstackedit_modedraggerdefault_area) {
            
Concrete.BlockType.prototype.init.call(thiselemedit_modedraggerdefault_area);
            
this.setAttr('stack'stack);
        },

        
removeElement: function() {
            $.
pep.unbind(this.getPeper());
        },

        
addToDragArea: function StackBlockAddToDragArea(drag_area) {
            var 
my thiselem my.getElem(),
                
block_type_id elem.data('btid'),
                
area drag_area.getArea(),
                
area_handle area.getHandle(),
                
dragAreaBlockID 0,
                
dragAreaBlock drag_area.getBlock();

            if (
dragAreaBlock) {
                
dragAreaBlockID dragAreaBlock.getId();
            }

            
ConcretePanelManager.exitPanelMode();

            var 
settings = {
                
cIDCCM_CID,
                
bIDelem.data('block-id'),
                
arHandlearea_handle,
                
btIDblock_type_id,
                
mode'edit',
                
processBlock1,
                
add1,
                
btask'alias_existing_block',
                
pcID: [elem.data('cID')],
                
ccm_tokenCCM_SECURITY_TOKEN
            
};
            if (
dragAreaBlockID) {
                
settings.dragAreaBlockID dragAreaBlockID;
            }
            $.
getJSON(CCM_DISPATCHER_FILENAMEsettings, function (response) {
                
my.handleAddResponse(responseareadragAreaBlock);
            });
        }

    });

}(
windowjQuery_Concrete));
?>
Онлайн: 1
Реклама