Changeset 278


Ignore:
Timestamp:
01/14/09 14:02:30 (13 years ago)
Author:
doryphores
Message:

Fixed audio player button for 2.7
Fixed rtl layout

Location:
audio-player/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • audio-player/trunk/plugin/audio-player.php

    r276 r278  
    664664                        // Only add the extra button if the attachment is an mp3 file 
    665665                        if ($post->post_mime_type == 'audio/mpeg') { 
    666                                 $form_fields["url"]["html"] .= "<button type='button' class='button audio-player-" . $post->ID . "' value='[audio:" . attribute_escape($file) . "]'>Audio Player</button>"; 
     666                                $form_fields["url"]["html"] .= "<button type='button' class='button audio-player-" . $post->ID . "' value='[audio:" . attribute_escape($file) . "]' title='[audio:" . attribute_escape($file) . "]'>Audio Player</button>"; 
    667667                                $form_fields["url"]["html"] .= "<script type='text/javascript'> 
    668668                                jQuery('button.audio-player-" . $post->ID . "').bind('click', function(){jQuery(this).siblings('input').val(this.value);}); 
     
    701701                function overrideMediaUpload() { 
    702702                        global $the_current_page; 
    703                         if ($the_current_page == "post-new.php" || $the_current_page == "post.php" || $the_current_page == "page-new.php" || $the_current_page == "page.php") { 
     703                        //if ($the_current_page == "post-new.php" || $the_current_page == "post.php" || $the_current_page == "page-new.php" || $the_current_page == "page.php") { 
    704704                                echo '<script type="text/javascript" src="' . $this->pluginURL . '/assets/media-upload.js?ver=@buildNumber@"></script>'; 
    705705                                echo "\n"; 
    706                         } 
     706                        //} 
    707707                } 
    708708                 
  • audio-player/trunk/source/classes/Application.as

    r277 r278  
    263263                        background_mc._x = control_mc.realWidth - 7; 
    264264                         
    265                         var trackCount = _player.getTrackCount(); 
    266                  
    267265                        progress_mc._x = control_mc.realWidth + 4; 
    268266                        if(_options.demomode || trackCount > 1) progress_mc._x += 4; 
     
    282280                         
    283281                        mask_mc._rotation = 180; 
    284                         mask_mc._y += mask_mc._height; 
     282                        mask_mc._y = mask_mc._height; 
    285283                        mask_mc._x = volume_mc._x + 7; 
    286284                         
  • audio-player/trunk/source/classes/Control.as

    r255 r278  
    7979        { 
    8080                this.background_mc._rotation = 180; 
    81                 this.background_mc._y += this.background_mc._height; 
    82                 this.background_mc._x += this.background_mc._width; 
     81                this.background_mc._y = this.background_mc._height; 
     82                this.background_mc._x = this.background_mc._width; 
    8383                this.play_mc._x = 14; 
    8484                this.pause_mc._x = 13; 
  • audio-player/trunk/source/classes/Volume.as

    r255 r278  
    121121                 
    122122                this.background_mc._rotation = 180; 
    123                 this.background_mc._y += this.background_mc._height; 
    124                 this.background_mc._x += this.background_mc._width; 
    125                 this.control_mc._x += 5; 
    126                 this.icon_mc._x += 5; 
     123                this.background_mc._y = this.background_mc._height; 
     124                this.background_mc._x = this.background_mc._width; 
     125                this.control_mc._x += 2; 
     126                this.icon_mc._x += 2; 
    127127                 
    128128        } 
Note: See TracChangeset for help on using the changeset viewer.