HomeHelpTrac

Changeset 15968 for trunk


Ignore:
Timestamp:
02/09/12 01:33:52 (4 months ago)
Author:
Anton Lesnikov
Message:

Studio -> Page Builder -> Delete Block.

Location:
trunk/studio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/studio/js/builder_page.js

    r15967 r15968  
    139139}; 
    140140 
    141 BxDolStudioBuilderPage.prototype.onDeleteBlock = function(oData) { 
    142  
     141BxDolStudioBuilderPage.prototype.deleteBlock = function(iId) { 
     142    bx_loading(this.oHtmlIds['edit_block_popup_id'], true); 
     143    this.performAction('block_delete', {id:iId}); 
     144}; 
     145 
     146BxDolStudioBuilderPage.prototype.onDeleteBlock = function(iId, oData) { 
     147    bx_loading(this.oHtmlIds['edit_block_popup_id'], false); 
     148    $('.bx-popup-applied:visible').dolPopupHide(); 
     149 
     150    $('#' + this.oHtmlIds['block_id'] + iId).bx_anim('hide', this.sAnimationEffect, this.iAnimationSpeed, function() { 
     151        $(this).remove(); 
     152    }); 
    143153}; 
    144154 
  • trunk/studio/templates/base/scripts/BxBaseStudioBuilderPage.php

    r15967 r15968  
    817817                        'value' => _t('_adm_bp_btn_block_delete'), 
    818818                        'attrs' => array( 
    819                             'onclick' => $this->getPageJsObject() . ".performAction('block_delete', {id:" . $aBlock['id'] . "})", 
     819                            'onclick' => $this->getPageJsObject() . ".deleteBlock(" . $aBlock['id'] . ")", 
    820820                            'class' => 'bx-def-margin-sec-left', 
    821821                        ), 
Note: See TracChangeset for help on using the changeset viewer.