Changeset 13368 for trunk/administration
- Timestamp:
- 12/07/09 04:04:18 (2 years ago)
- Location:
- trunk/administration
- Files:
-
- 5 edited
-
fields.php (modified) (1 diff)
-
js/fields.js (modified) (3 diffs)
-
templates/base/css/fields.css (modified) (2 diffs)
-
templates/base/css/pageBuilder.css (modified) (7 diffs)
-
templates/base/pbuilder_content.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/fields.php
r13244 r13368 38 38 'name_index' => $iNameIndex, 39 39 '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'), 41 41 'header' => _t('_adm_fields_title') 42 42 ); -
trunk/administration/js/fields.js
r12172 r13368 260 260 BxDolPFMArea.prototype.activateSortable = function() { 261 261 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 ); 268 270 } 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 ); 276 278 } 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 282 BxDolPFMArea.prototype.stopItemsSort = function( item ) { 283 var draggedElementID = $(item).attr('id'); 286 284 if( draggedElementID == 'build_block_new_' + this.id ) { 287 285 if( $( '#build_block_new_' + this.id ).parent().is( '#' + this.activeZoneElemID ) ) … … 350 348 oNewBlock.getElement(); 351 349 352 this.deactivateSortable();353 350 this.activateSortable(); 354 351 } … … 374 371 this.active_items[iNewInd].getElement(); 375 372 376 this.deactivateSortable();377 373 this.activateSortable(); 378 374 } -
trunk/administration/templates/base/css/fields.css
r11690 r13368 132 132 .build_item_fake, 133 133 .build_block_fake { 134 min-height:1px;134 height:2px; 135 135 font-size:1px; 136 136 /*background-color:yellow;*/ … … 337 337 338 338 339 .form_tabs_cont { 339 ul#form_tabs_switcher { 340 margin:0px; 341 margin-bottom:3px; 342 padding:0px; 340 343 border-bottom:1px solid #ccc; 341 margin-bottom:3px;342 }343 344 .form_tabs_cont ul {345 344 list-style:none; 346 margin:0px;347 padding:0px;348 345 height:25px; 349 346 } 350 347 351 .form_tabs_cont ulli {348 ul#form_tabs_switcher li { 352 349 float:left; 353 350 padding:5px; -
trunk/administration/templates/base/css/pageBuilder.css
r12866 r13368 3 3 background-image: none; 4 4 width: auto; 5 padding: 0px;5 padding: 5px; 6 6 border: 1px solid #cccccc; 7 7 } … … 17 17 .block_cont#activeAreaWrapper { 18 18 margin-bottom: 0px; 19 border-bottom: none 19 border-bottom: none; 20 20 } 21 21 … … 54 54 } 55 55 56 #pageWidthSlider div, 57 #pageWidthSlider 1 div {58 position: absolute; 59 top: -2px;56 57 #pageWidthSlider a.ui-slider-handle, 58 #pageWidthSlider1 a.ui-slider-handle { 59 top: -2px; 60 60 width: 12px; 61 61 height: 20px; 62 background-image: url(../images/slider-handle1.gif);63 cursor: pointer;62 border: none; 63 background-image: url(../images/slider-handle1.gif); 64 64 } 65 65 66 66 .buildArea { 67 padding: 8px;67 /*padding: 8px;*/ 68 68 } 69 69 … … 80 80 background-color: #fff; 81 81 padding: 3px; 82 margin: 3px;82 margin: 5px; 83 83 text-align: center; 84 84 overflow: hidden; … … 106 106 text-align: center; 107 107 cursor: move; 108 padding-top: 6px; */108 padding-top: 6px; 109 109 background-repeat: no-repeat; 110 110 background-image: url( ../images/block_header.gif ); … … 134 134 /*background-color: #f5f5f5;*/ 135 135 border: 1px dashed #999999; 136 float: left; 136 137 } 137 138 … … 151 152 } 152 153 153 #columnsSlider div { 154 background-image: url(../images/slider-handle.gif); 155 height: 23px; 156 left: 0px; 157 position: absolute; 154 #columnsSlider a { 158 155 top: -5px; 159 156 width: 12px; 160 z-index: 1; 161 cursor: pointer; 157 height: 23px; 158 border: none; 159 background-image: url(../images/slider-handle.gif); 162 160 } 163 161 -
trunk/administration/templates/base/pbuilder_content.html
r12863 r13368 3 3 <bx_if:page> 4 4 <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> 6 6 <div class="block_cont_nd"> 7 7 <div id="pageWidthValue"></div> 8 <div id="pageWidthSlider"> 9 <div></div> 10 </div> 8 <div id="pageWidthSlider"></div> 11 9 <div class="clear_both"></div> 12 10 </div> … … 24 22 </div> 25 23 26 <div id="columnsSlider"> 27 <div></div> 28 </div> 24 <div id="columnsSlider"></div> 29 25 30 26 <div class="block_head"><bx_text:_adm_txt_pb_inactive_blocks /></div> … … 45 41 <div class="block_cont_nd"> 46 42 <div id="pageWidthValue1"></div> 47 48 <div id="pageWidthSlider1"> 49 <div></div> 50 </div> 51 43 <div id="pageWidthSlider1"></div> 52 44 <div class="clear_both"></div> 53 45 </div>
Note: See TracChangeset
for help on using the changeset viewer.