HomeHelpTrac

Changeset 13368 for trunk/administration


Ignore:
Timestamp:
12/07/09 04:04:18 (2 years ago)
Author:
Sergey Zotov
Message:

Ticket #1582

Location:
trunk/administration
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/fields.php

    r13244 r13368  
    3838    'name_index' => $iNameIndex, 
    3939    'css_name' => array('fields.css'), 
    40     'js_name' => array('ui.tabs.js', 'ui.mouse.js', 'ui.draggable.js', 'ui.draggable.ext.js', 'ui.sortable.js', 'fields.js'), 
     40    'js_name' => array('ui.core.js', 'ui.tabs.js', 'ui.sortable.js', 'fields.js'), 
    4141    'header' => _t('_adm_fields_title')     
    4242); 
  • trunk/administration/js/fields.js

    r12172 r13368  
    260260BxDolPFMArea.prototype.activateSortable = function() { 
    261261    var oThisArea = this; 
    262      
    263     this.sortableInstanceBlocks = $( this.element ).sortable({ 
    264         items: 'div.build_block,div.build_block_fake', 
    265         hoverClass: 'build_block_hover', 
    266         stop: function(a,b){ 
    267             oThisArea.stopItemsSort( this.id ); 
     262     
     263    $('.blocks_container', this.element).sortable('destroy').sortable({ 
     264        items: $('.build_block,.build_block_fake', this.element), 
     265        //connectWith: $('.blocks_container', this.element), 
     266        cancel: '.build_item_active,.build_item_inactive', 
     267        dropOnEmpty: false, 
     268        stop: function(e,ui){ 
     269            oThisArea.stopItemsSort( ui.item ); 
    268270        } 
    269     }).sortableInstance(); //create instance for destroying possibilities 
    270  
    271     this.sortableInstanceItems = $( this.element ).sortable({ 
    272         items: 'div.build_item_active,div.build_item_inactive,div.build_item_fake', 
    273         hoverClass: 'build_item_hover', 
    274         stop: function(a,b){ 
    275             oThisArea.stopItemsSort( this.id ); 
     271    }); 
     272     
     273    $('.build_block,.build_inac_items_col', this.element).sortable({ 
     274        items: $('.build_item_active,.build_item_inactive,.build_item_fake', this.element), 
     275        dropOnEmpty: false, 
     276        stop: function(e,ui){ 
     277            oThisArea.stopItemsSort( ui.item ); 
    276278        } 
    277     }).sortableInstance(); 
    278 } 
    279  
    280 BxDolPFMArea.prototype.deactivateSortable = function() { 
    281     this.sortableInstanceBlocks.destroy(); 
    282     this.sortableInstanceItems.destroy(); 
    283 } 
    284  
    285 BxDolPFMArea.prototype.stopItemsSort = function( draggedElementID ) { 
     279    }); 
     280} 
     281 
     282BxDolPFMArea.prototype.stopItemsSort = function( item ) { 
     283    var draggedElementID = $(item).attr('id'); 
    286284    if( draggedElementID == 'build_block_new_' + this.id ) { 
    287285        if( $( '#build_block_new_' + this.id ).parent().is( '#' + this.activeZoneElemID ) ) 
     
    350348    oNewBlock.getElement(); 
    351349     
    352     this.deactivateSortable(); 
    353350    this.activateSortable(); 
    354351} 
     
    374371    this.active_items[iNewInd].getElement(); 
    375372     
    376     this.deactivateSortable(); 
    377373    this.activateSortable(); 
    378374} 
  • trunk/administration/templates/base/css/fields.css

    r11690 r13368  
    132132.build_item_fake, 
    133133.build_block_fake { 
    134     min-height:1px; 
     134    height:2px; 
    135135    font-size:1px; 
    136136    /*background-color:yellow;*/ 
     
    337337 
    338338 
    339 .form_tabs_cont { 
     339ul#form_tabs_switcher { 
     340    margin:0px; 
     341    margin-bottom:3px; 
     342    padding:0px; 
    340343    border-bottom:1px solid #ccc; 
    341     margin-bottom:3px; 
    342 } 
    343  
    344 .form_tabs_cont ul { 
    345344    list-style:none; 
    346     margin:0px; 
    347     padding:0px; 
    348345    height:25px; 
    349346} 
    350347 
    351 .form_tabs_cont ul li { 
     348ul#form_tabs_switcher li { 
    352349    float:left; 
    353350    padding:5px; 
  • trunk/administration/templates/base/css/pageBuilder.css

    r12866 r13368  
    33    background-image: none; 
    44    width: auto; 
    5     padding: 0px; 
     5    padding: 5px; 
    66    border: 1px solid #cccccc; 
    77} 
     
    1717.block_cont#activeAreaWrapper { 
    1818    margin-bottom: 0px; 
    19     border-bottom: none 
     19    border-bottom: none; 
    2020} 
    2121 
     
    5454} 
    5555 
    56 #pageWidthSlider div, 
    57 #pageWidthSlider1 div { 
    58     position: absolute; 
    59     top: -2px; 
     56 
     57#pageWidthSlider a.ui-slider-handle, 
     58#pageWidthSlider1 a.ui-slider-handle { 
     59    top: -2px; 
    6060    width: 12px; 
    6161    height: 20px; 
    62     background-image: url(../images/slider-handle1.gif); 
    63     cursor: pointer; 
     62    border: none; 
     63    background-image: url(../images/slider-handle1.gif); 
    6464} 
    6565 
    6666.buildArea { 
    67     padding: 8px; 
     67    /*padding: 8px;*/ 
    6868} 
    6969 
     
    8080    background-color: #fff; 
    8181    padding: 3px; 
    82     margin: 3px; 
     82    margin: 5px; 
    8383    text-align: center; 
    8484    overflow: hidden; 
     
    106106    text-align: center; 
    107107    cursor: move; 
    108     padding-top: 6px;*/ 
     108    padding-top: 6px; 
    109109    background-repeat: no-repeat; 
    110110    background-image: url( ../images/block_header.gif ); 
     
    134134    /*background-color: #f5f5f5;*/ 
    135135    border: 1px dashed #999999; 
     136    float: left; 
    136137} 
    137138 
     
    151152} 
    152153 
    153 #columnsSlider div { 
    154     background-image: url(../images/slider-handle.gif); 
    155     height: 23px; 
    156     left: 0px; 
    157     position: absolute; 
     154#columnsSlider a { 
    158155    top: -5px; 
    159156    width: 12px; 
    160     z-index: 1; 
    161     cursor: pointer; 
     157    height: 23px; 
     158    border: none; 
     159    background-image: url(../images/slider-handle.gif); 
    162160} 
    163161 
  • trunk/administration/templates/base/pbuilder_content.html

    r12863 r13368  
    33    <bx_if:page> 
    44        <div id="buildAreasWrapper"> 
    5             <div class="block_head"><bx_text:_adm_txt_pb_other_pages_width /></div> 
     5            <div class="block_head"><bx_text:_adm_txt_pb_page_width /></div> 
    66            <div class="block_cont_nd"> 
    77                <div id="pageWidthValue"></div> 
    8                 <div id="pageWidthSlider"> 
    9                     <div></div> 
    10                 </div> 
     8                <div id="pageWidthSlider"></div> 
    119                <div class="clear_both"></div> 
    1210            </div> 
     
    2422            </div> 
    2523             
    26             <div id="columnsSlider"> 
    27                 <div></div> 
    28             </div> 
     24            <div id="columnsSlider"></div> 
    2925     
    3026            <div class="block_head"><bx_text:_adm_txt_pb_inactive_blocks /></div> 
     
    4541            <div class="block_cont_nd"> 
    4642                <div id="pageWidthValue1"></div> 
    47      
    48                 <div id="pageWidthSlider1"> 
    49                     <div></div> 
    50                 </div> 
    51      
     43                <div id="pageWidthSlider1"></div> 
    5244                <div class="clear_both"></div> 
    5345            </div> 
Note: See TracChangeset for help on using the changeset viewer.