Changeset 2455
- Timestamp:
- 09/07/08 04:14:55 (3 months ago)
- Location:
- trunk/htdocs/system
- Files:
-
- 6 modified
-
admin/comments.php (modified) (2 diffs)
-
admin/css/admin.css (modified) (1 diff)
-
admin/js/admin.js (modified) (6 diffs)
-
admin/logs.php (modified) (1 diff)
-
admin/posts.php (modified) (2 diffs)
-
classes/adminhandler.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/admin/comments.php
r2361 r2455 41 41 42 42 <div class="container transparent item comments controls"> 43 <span class="checkboxandselected pct 25">43 <span class="checkboxandselected pct30"> 44 44 <input type="checkbox" id="master_checkbox" name="master_checkbox"> 45 45 <label class="selectedtext minor none" for="master_checkbox"><?php _e('None selected'); ?></label> … … 61 61 62 62 <div class="container transparent item comments controls"> 63 <span class="checkboxandselected pct 25">63 <span class="checkboxandselected pct30"> 64 64 <input type="checkbox" id="master_checkbox_2" name="master_checkbox_2"> 65 65 <label class="selectedtext minor none" for="master_checkbox_2"><?php _e('None selected'); ?></label> -
trunk/htdocs/system/admin/css/admin.css
r2415 r2455 1459 1459 .navigator span { 1460 1460 float: left; 1461 } 1462 1463 .navigator span span { 1464 float:none; 1461 1465 } 1462 1466 -
trunk/htdocs/system/admin/js/admin.js
r2388 r2455 326 326 visible = $('.item:not(.hidden):not(.ignore) .checkbox input[type=checkbox]:checked').length; 327 327 328 total= $('.currentposition .total').text(); 329 328 330 count = 0; 329 331 for (var id in itemManage.selected) { … … 342 344 this.checked = 1; 343 345 }); 344 $('.item.controls label.selectedtext').removeClass('none').addClass('all').text('All ' + count + ' selected'); 346 $('.item.controls label.selectedtext').removeClass('none').addClass('all').html('All ' + count + ' visible selected (<a href="#all" class="everything">Select all ' + total + '</a>)'); 347 348 $('.item.controls label.selectedtext .everything').click(function() { 349 itemManage.checkEverything(); 350 return false; 351 }); 352 345 353 if(visible != count) { 346 354 $('.item.controls label.selectedtext').text('All visible selected (' + count + ' total)'); 355 } 356 357 if((total == count) || $('.currentposition .total').length == 0) { 358 $('.item.controls label.selectedtext').removeClass('none').addClass('all').addClass('total').html('All ' + total + ' selected'); 347 359 } 348 360 } else { … … 351 363 }); 352 364 $('.item.controls label.selectedtext').removeClass('none').removeClass('all').text(count + ' selected'); 365 353 366 if(visible != count) { 354 367 $('.item.controls label.selectedtext').text(count + ' selected (' + visible + ' visible)'); 355 368 } 356 369 } 370 }, 371 checkEverything: function() { 372 itemManage.fetch(0, $('.currentposition .total').text(), false, true); 357 373 }, 358 374 uncheckAll: function() { … … 414 430 itemManage.update( 'delete', id ); 415 431 }, 416 fetch: function( offset, limit, resetTimeline ) {432 fetch: function( offset, limit, resetTimeline, silent ) { 417 433 offset = ( offset == null ) ? 0 : offset; 418 434 limit = ( limit == null ) ? 20: limit; 435 silent = ( silent == null ) ? false: silent; 419 436 spinner.start(); 420 437 … … 425 442 dataType: 'json', 426 443 success: function(json) { 427 itemManage.fetchReplace.html(json.items); 428 // if we have a timeline, replace its content 429 if ( resetTimeline && $('.timeline').length !=0 ) { 430 // we hide and show the timeline to fix a firefox display bug 431 $('.years').html(json.timeline).hide(); 432 spinner.stop(); 444 if(silent) { 445 itemManage.selected= json.item_ids; 433 446 itemManage.initItems(); 434 $('.years').show(); 435 timeline.reset(); 436 $('input.checkbox').rangeSelect(); 447 } else { 448 itemManage.fetchReplace.html(json.items); 449 // if we have a timeline, replace its content 450 if ( resetTimeline && $('.timeline').length !=0 ) { 451 // we hide and show the timeline to fix a firefox display bug 452 $('.years').html(json.timeline).hide(); 453 spinner.stop(); 454 itemManage.initItems(); 455 $('.years').show(); 456 timeline.reset(); 457 $('input.checkbox').rangeSelect(); 458 } 459 else { 460 spinner.stop(); 461 itemManage.initItems(); 462 $('input.checkbox').rangeSelect(); 463 } 464 if ( itemManage.inEdit == true ) { 465 inEdit.init(); 466 inEdit.deactivate(); 467 } 468 findChildren(); 437 469 } 438 else { 439 spinner.stop(); 440 itemManage.initItems(); 441 $('input.checkbox').rangeSelect(); 442 } 443 if ( itemManage.inEdit == true ) { 444 inEdit.init(); 445 inEdit.deactivate(); 446 } 447 findChildren(); 470 448 471 spinner.stop(); 472 449 473 } 450 474 }); … … 824 848 var loupeInfo = timelineHandle.getLoupeInfo(); 825 849 826 $('.currentposition'). text( loupeInfo.start +'-'+ loupeInfo.end +' of '+ timeline.totalCount);850 $('.currentposition').html( loupeInfo.start +'-'+ loupeInfo.end +' of <span class="total inline">'+ timeline.totalCount + '</span>'); 827 851 if ($('.currentposition').css('opacity')) $('.currentposition').animate({opacity: 1}, 500) 828 852 -
trunk/htdocs/system/admin/logs.php
r2361 r2455 76 76 77 77 <div class="item controls"> 78 <span class="checkboxandselected pct 25">78 <span class="checkboxandselected pct40"> 79 79 <input type="checkbox" id="master_checkbox" name="master_checkbox"> 80 80 <label class="selectedtext minor none" for="master_checkbox"><?php _e('None selected'); ?></label> -
trunk/htdocs/system/admin/posts.php
r2361 r2455 38 38 <input type="hidden" name="timestamp" id="timestamp" value="<?php echo $wsse['timestamp']; ?>"> 39 39 <input type="hidden" name="PasswordDigest" id="PasswordDigest" value="<?php echo $wsse['digest']; ?>"> 40 <span class="checkboxandselected pct 25">40 <span class="checkboxandselected pct30"> 41 41 <input type="checkbox" id="master_checkbox" name="master_checkbox"> 42 42 <label class="selectedtext minor none" for="master_checkbox"><?php _e('None selected'); ?></label> … … 59 59 <input type="hidden" name="timestamp" id="timestamp" value="<?php echo $wsse['timestamp']; ?>"> 60 60 <input type="hidden" name="PasswordDigest" id="PasswordDigest" value="<?php echo $wsse['digest']; ?>"> 61 <span class="checkboxandselected pct 25">61 <span class="checkboxandselected pct30"> 62 62 <input type="checkbox" id="master_checkbox_2" name="master_checkbox_2"> 63 63 <label class="selectedtext minor none" for="master_checkbox_2"><?php _e('None selected'); ?></label> -
trunk/htdocs/system/classes/adminhandler.php
r2435 r2455 1348 1348 $this->theme->years= $years; 1349 1349 } 1350 1350 1351 } 1351 1352 … … 1452 1453 $items= $this->theme->fetch( 'posts_items' ); 1453 1454 $timeline= $this->theme->fetch( 'timeline_items' ); 1454 1455 1456 $item_ids= array(); 1457 1458 foreach($this->theme->posts as $post) { 1459 $item_ids['p' . $post->id]= 1; 1460 } 1461 1455 1462 $output= array( 1456 1463 'items' => $items, 1464 'item_ids' => $item_ids, 1457 1465 'timeline' => $timeline, 1458 1466 ); … … 1475 1483 $timeline= $this->theme->fetch( 'timeline_items' ); 1476 1484 1485 $item_ids= array(); 1486 1487 foreach($this->theme->comments as $comment) { 1488 $item_ids['p' . $comment->id]= 1; 1489 } 1490 1477 1491 $output= array( 1478 1492 'items' => $items, 1493 'item_ids' => $item_ids, 1479 1494 'timeline' => $timeline, 1480 1495 ); … … 1853 1868 $timeline= $this->theme->fetch( 'timeline_items' ); 1854 1869 1870 $item_ids= array(); 1871 1872 foreach($this->theme->logs as $log) { 1873 $item_ids['p' . $log->id]= 1; 1874 } 1875 1855 1876 $output= array( 1856 1877 'items' => $items, 1878 'item_ids' => $item_ids, 1857 1879 'timeline' => $timeline, 1858 1880 );
