Changeset 2250
- Timestamp:
- 07/25/08 02:29:25 (6 months ago)
- Location:
- makaanga/0.x/htdocs/system
- Files:
-
- 4 modified
- 1 copied
-
admin/css/admin.css (modified) (2 diffs)
-
admin/css/ie.css (copied) (copied from trunk/htdocs/system/admin/css/ie.css)
-
admin/header.php (modified) (1 diff)
-
admin/js/admin.js (modified) (11 diffs)
-
classes/plugins.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
makaanga/0.x/htdocs/system/admin/css/admin.css
r2137 r2250 1415 1415 display: table-row; 1416 1416 height: inherit; 1417 overflow: hidden;1417 /*overflow: hidden;*/ 1418 1418 position: relative; 1419 1419 border: none !important; … … 1483 1483 line-height: 20px; 1484 1484 padding: 2px 0; 1485 } 1486 1487 .tag span { 1485 1488 white-space: nowrap; 1486 1489 } -
makaanga/0.x/htdocs/system/admin/header.php
r2150 r2250 36 36 Stack::out( 'admin_header_javascript', '<script src="%s" type="text/javascript"></script>'."\r\n" ); 37 37 ?> 38 <!--[if IE 7]> 39 <link rel="stylesheet" type="text/css" href="<?php Site::out_url('admin_theme'); ?>/css/ie.css" media="screen"> 40 <![endif]--> 38 41 39 42 </head> -
makaanga/0.x/htdocs/system/admin/js/admin.js
r2203 r2250 534 534 if (!$('.timeline').length) return; 535 535 536 var timelineWidth = $('.years').width();537 var viewWidth= $('.timeline').width();538 timeline.overhang= ( timelineWidth > viewWidth ) ? timelineWidth - viewWidth : 0;539 540 536 // Set up pointers to elements for speed 541 537 timeline.view= $('.timeline'); … … 551 547 timeline.totalCount += timeline.monthData[i]; 552 548 }); 549 550 // manually set the timelineWidth to contain its children for IE7 551 var timelineWidth = 0; 552 if ( $.browser.msie ) { 553 jQuery(timeline.monthWidths).each(function() { timelineWidth += this; } ); 554 $('.years').width( timelineWidth ); 555 } 556 else { 557 timelineWidth = $('.years').width(); 558 } 559 560 // check for a timeline larger than its view 561 timeline.overhang= ( timelineWidth > viewWidth ) ? timelineWidth - viewWidth : 0; 562 var viewWidth= $('.timeline').width(); 563 timeline.overhang= ( timelineWidth > viewWidth ) ? timelineWidth - viewWidth : 0; 553 564 554 565 // Find the width which makes the loupe select 20 items … … 582 593 slide: function( event, ui) { 583 594 timeline.updateView(); 584 } ,595 } 585 596 }) 586 597 .unbind('click') … … 699 710 }, 700 711 reset: function () { 701 var timelineWidth = $('.years').width();702 var viewWidth= $('.timeline').width();703 timeline.overhang= ( timelineWidth > viewWidth ) ? timelineWidth - viewWidth : 0;704 705 712 // update the arrays of posts per month 706 713 timeline.monthData= [0]; … … 713 720 }); 714 721 722 // manually set the timelineWidth to contain its children for IE7 723 var timelineWidth = 0; 724 if ( $.browser.msie ) { 725 jQuery(timeline.monthWidths).each(function() { timelineWidth += this; } ); 726 $('.years').width( timelineWidth ); 727 } 728 else { 729 timelineWidth = $('.years').width(); 730 } 731 732 // check for a timeline larger than its view 733 timeline.overhang= ( timelineWidth > viewWidth ) ? timelineWidth - viewWidth : 0; 734 var viewWidth= $('.timeline').width(); 735 timeline.overhang= ( timelineWidth > viewWidth ) ? timelineWidth - viewWidth : 0 736 715 737 // find the width which makes the loupe select 20 items 716 738 var handleWidth= timelineWidth - timeline.positionFromIndex( timeline.totalCount - 20 ); … … 736 758 var timelineHandle = { 737 759 init: function( handleWidth ) { 738 $('.handle').css('width', handleWidth + 'px'); 760 timeline.handle.css('width', handleWidth + 'px'); 761 762 /* force 'right' property to 'auto' so we can check in doDragLeft if we have fixed the 763 * right side of the handle */ 764 timeline.handle.css('right', 'auto'); 739 765 // Resize Handle Left 740 766 $('.resizehandleleft') 741 767 .mousedown(function(e) { 742 timelineHandle.firstMousePos = $('.handle').offset().left - $('.track').offset().left;743 timelineHandle.initialSize = $('.handle').width();768 timelineHandle.firstMousePos = timeline.handle.offset().left - $('.track').offset().left; 769 timelineHandle.initialSize = timeline.handle.width(); 744 770 745 771 $(document).mousemove(timelineHandle.doDragLeft).mouseup(timelineHandle.endDrag); … … 751 777 .mousedown(function(e) { 752 778 timelineHandle.firstMousePos = e.clientX; 753 timelineHandle.initialSize = $('.handle').width();779 timelineHandle.initialSize = timeline.handle.width(); 754 780 755 781 $(document).mousemove(timelineHandle.doDragRight).mouseup(timelineHandle.endDrag); … … 759 785 }, 760 786 doDragLeft: function(e) { 761 $('.handle').css({ 762 'left': 'auto', 763 'right': $('.handle').parents('.track').width() - (parseInt($('.handle').css('left')) + $('.handle').width()) 764 }); 787 var h = timeline.handle; 788 var track = h.parents('.track'); 789 // fix the right side (only do this if we haven't already done it) 790 if ( h.css('right') == 'auto' ) { 791 h.css({ 792 'left': 'auto', 793 'right': track.width() - ( parseInt(h.css('left')) + h.width() ) 794 }); 795 } 765 796 766 797 // Set Loupe Width. Min 20, Max 200, no spilling to the left 767 $('.handle').css('width', Math.min(Math.max(timelineHandle.initialSize + (timelineHandle.firstMousePos - (e.clientX - $('.track').offset().left)), 20), Math.min($('.track').width() - parseInt($('.handle').css('right')), 200)));798 h.css('width', Math.min(Math.max(timelineHandle.initialSize + (timelineHandle.firstMousePos - (e.clientX - track.offset().left)), 20), Math.min(track.width() - parseInt(h.css('right')), 200))); 768 799 769 800 return false; 770 801 }, 771 802 doDragRight: function(e) { 772 $('.handle').css({ 773 'left': $('.handle').offset().left - $('.track').offset().left, 774 'right': 'auto' 803 var h = timeline.handle; 804 var track = h.parents('.track'); 805 // fix the left side 806 h.css({ 807 'left': h.offset().left - track.offset().left, 808 'right': 'auto' 775 809 }); 776 810 777 811 // Set Loupe Width. Min 20, Max 200, no spilling to the right 778 $('.handle').css( 'width', Math.min(Math.max(timelineHandle.initialSize + (e.clientX - timelineHandle.firstMousePos), 20), Math.min($('.track').width() - parseInt($('.handle').css('left')), 200)) );812 h.css( 'width', Math.min(Math.max(timelineHandle.initialSize + (e.clientX - timelineHandle.firstMousePos), 20), Math.min(track.width() - parseInt(h.css('left')), 200)) ); 779 813 780 814 return false; … … 790 824 end: loupeEndPosition, 791 825 offset: parseInt(timeline.totalCount) - parseInt(loupeEndPosition), 792 limit: 1 + parseInt(loupeEndPosition) - parseInt(loupeStartPosition) ,793 };826 limit: 1 + parseInt(loupeEndPosition) - parseInt(loupeStartPosition) 827 }; 794 828 return loupeInfo; 795 829 }, … … 815 849 816 850 return false; 817 } ,851 } 818 852 } 819 853 … … 1050 1084 liveSearch.prevSearch = liveSearch.input.val(); 1051 1085 itemManage.fetch( 0, 20, true ); 1052 } ,1086 } 1053 1087 } 1054 1088 -
makaanga/0.x/htdocs/system/classes/plugins.php
r2048 r2250 270 270 public static function class_from_filename( $file ) 271 271 { 272 if ( ! self::$plugin_classes ) {272 if ( true || ! self::$plugin_classes ) { 273 273 self::get_plugin_classes(); 274 274 }
