Changeset 2250

Show
Ignore:
Timestamp:
07/25/08 02:29:25 (6 months ago)
Author:
ringmaster
Message:

Merging r2240, r2243, and r2244 from trunk to makaanga to address IE issues.

Location:
makaanga/0.x/htdocs/system
Files:
4 modified
1 copied

Legend:

Unmodified
Added
Removed
  • makaanga/0.x/htdocs/system/admin/css/admin.css

    r2137 r2250  
    14151415    display: table-row; 
    14161416    height: inherit; 
    1417     overflow: hidden; 
     1417    /*overflow: hidden;*/ 
    14181418    position: relative; 
    14191419    border: none !important; 
     
    14831483    line-height: 20px; 
    14841484    padding: 2px 0; 
     1485} 
     1486 
     1487.tag span { 
    14851488    white-space: nowrap; 
    14861489} 
  • makaanga/0.x/htdocs/system/admin/header.php

    r2150 r2250  
    3636        Stack::out( 'admin_header_javascript', '<script src="%s" type="text/javascript"></script>'."\r\n" ); 
    3737    ?> 
     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]--> 
    3841 
    3942</head> 
  • makaanga/0.x/htdocs/system/admin/js/admin.js

    r2203 r2250  
    534534        if (!$('.timeline').length) return; 
    535535 
    536         var timelineWidth = $('.years').width(); 
    537         var viewWidth= $('.timeline').width(); 
    538         timeline.overhang= ( timelineWidth > viewWidth ) ? timelineWidth - viewWidth : 0; 
    539  
    540536        // Set up pointers to elements for speed 
    541537        timeline.view= $('.timeline'); 
     
    551547            timeline.totalCount += timeline.monthData[i]; 
    552548        }); 
     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; 
    553564 
    554565        // Find the width which makes the loupe select 20 items 
     
    582593            slide: function( event, ui) { 
    583594                timeline.updateView(); 
    584             }, 
     595            } 
    585596        }) 
    586597        .unbind('click') 
     
    699710    }, 
    700711    reset: function () { 
    701         var timelineWidth = $('.years').width(); 
    702         var viewWidth= $('.timeline').width(); 
    703         timeline.overhang= ( timelineWidth > viewWidth ) ? timelineWidth - viewWidth : 0; 
    704  
    705712        // update the arrays of posts per month 
    706713        timeline.monthData= [0]; 
     
    713720        }); 
    714721 
     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 
    715737        // find the width which makes the loupe select 20 items 
    716738        var handleWidth= timelineWidth - timeline.positionFromIndex( timeline.totalCount - 20 ); 
     
    736758var timelineHandle = { 
    737759    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'); 
    739765        // Resize Handle Left 
    740766        $('.resizehandleleft') 
    741767            .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(); 
    744770 
    745771                $(document).mousemove(timelineHandle.doDragLeft).mouseup(timelineHandle.endDrag); 
     
    751777            .mousedown(function(e) { 
    752778                timelineHandle.firstMousePos = e.clientX; 
    753                 timelineHandle.initialSize = $('.handle').width(); 
     779                timelineHandle.initialSize = timeline.handle.width(); 
    754780 
    755781                $(document).mousemove(timelineHandle.doDragRight).mouseup(timelineHandle.endDrag); 
     
    759785    }, 
    760786    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        } 
    765796 
    766797        // 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))); 
    768799 
    769800        return false; 
    770801    }, 
    771802    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' 
    775809        }); 
    776810 
    777811        // 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)) ); 
    779813 
    780814        return false; 
     
    790824            end: loupeEndPosition, 
    791825            offset: parseInt(timeline.totalCount) - parseInt(loupeEndPosition), 
    792             limit: 1 + parseInt(loupeEndPosition) - parseInt(loupeStartPosition), 
    793             }; 
     826            limit: 1 + parseInt(loupeEndPosition) - parseInt(loupeStartPosition) 
     827        }; 
    794828        return loupeInfo; 
    795829    }, 
     
    815849 
    816850        return false; 
    817     }, 
     851    } 
    818852} 
    819853 
     
    10501084        liveSearch.prevSearch = liveSearch.input.val(); 
    10511085        itemManage.fetch( 0, 20, true ); 
    1052     }, 
     1086    } 
    10531087} 
    10541088 
  • makaanga/0.x/htdocs/system/classes/plugins.php

    r2048 r2250  
    270270    public static function class_from_filename( $file ) 
    271271    { 
    272         if ( ! self::$plugin_classes ) { 
     272        if ( true || ! self::$plugin_classes ) { 
    273273            self::get_plugin_classes(); 
    274274        }