* (bug 20037) fixes script-loader loading of color picker (grouped scripts ~usually...
authorMichael Dale <dale@users.mediawiki.org>
Wed, 12 Aug 2009 19:10:49 +0000 (19:10 +0000)
committerMichael Dale <dale@users.mediawiki.org>
Wed, 12 Aug 2009 19:10:49 +0000 (19:10 +0000)
* fixed select transition multiclip select issue
* fixed poster attribute for "embed code"

js2/mwEmbed/libClipEdit/colorpicker/js/colorpicker.js
js2/mwEmbed/libEmbedVideo/embedVideo.js
js2/mwEmbed/libSequencer/mvSequencer.js
js2/mwEmbed/libSequencer/mvTimedEffectsEdit.js

index 45f56ce..aec4dc8 100644 (file)
@@ -6,6 +6,7 @@
  * Dual licensed under the MIT and GPL licenses
  * 
  */
 (function ($) {
        var ColorPicker = function () {
                var
                ColorPickerShow: ColorPicker.showPicker,
                ColorPickerSetColor: ColorPicker.setColor
        });
-})(jQuery)
\ No newline at end of file
+})(jQuery);
\ No newline at end of file
index e64aa67..49febb1 100644 (file)
@@ -836,10 +836,10 @@ mediaElement.prototype =
                        this.tryAddSource(video_element);                         
                
                if($j(video_element).attr('thumbnail'))
-                       this.thumbnail=$j(video_element).attr('thumbnail');
+                       this.thumbnail = $j(video_element).attr('thumbnail');
                        
                if($j(video_element).attr('poster'))
-                       this.thumbnail=$j(video_element).attr('poster');
+                       this.thumbnail = $j(video_element).attr('poster');
                        
                // Process all inner <source> elements  
                //js_log("inner source count: " + video_element.getElementsByTagName('source').length );
@@ -1851,7 +1851,7 @@ embedVideo.prototype = {
                        embed_code_html+='roe=&quot;'+this.roe+'&quot; &gt;';
                }else{
                        embed_code_html+='src=&quot;'+this.src+'&quot; ' +
-                               'thumbnail=&quot;'+embed_thumb_html+'&quot;&gt;';
+                               'poster=&quot;'+embed_thumb_html+'&quot;&gt;';
                }
                //close the video tag
                embed_code_html+='&lt;/video&gt;';
index 62dba9b..67eb04e 100644 (file)
@@ -745,9 +745,9 @@ mvSequencer.prototype = {
                js_log("sequence:doEditTransition");
                var _this = this;               
                mv_get_loading_img( '#transitions_ic' );
-               mvJsLoader.doLoad([                     
-                       'mvTimedEffectsEdit',
-                       '$j.fn.ColorPicker'
+               mvJsLoader.doLoad([             
+                       '$j.fn.ColorPicker',
+                       'mvTimedEffectsEdit'                    
                ],function(){
                        //no idea why this works / is needed. 
                        var localSeqRef = _this;
@@ -1106,6 +1106,7 @@ mvSequencer.prototype = {
                                                this_seq.deselectClip( $j(this).siblings('.mv_clip_thumb').get(0) );
                                        }else{
                                                //deselect others 
+                                               this_seq.deselectClip();
                                                $j('.clip_trans_box').removeClass('mv_selected_transition');
                                                $j(this).addClass("mv_selected_transition");
                                                $j(this).siblings('.mv_clip_thumb').addClass("mv_selected_clip");       
@@ -1549,7 +1550,7 @@ mvSeqPlayList.prototype = {
                                        
                                
                //update the timeline playhead and                       
-               $j('#'+ this.seqObj.timeline_id + '_playline').css('left', left_px);
+               $j('#' + this.seqObj.timeline_id + '_playline').css('left', left_px);
                        
                //pass update request to parent:
                this.parent_setSliderValue( perc );
index f4c7c91..8659e99 100644 (file)
@@ -25,7 +25,8 @@ var default_timed_effect_values = {
        'pSeq': null,    //parent sequence Object
        
        'edit_action': null, //the requested edit action                                                
-}
+};
+
 var mvTimedEffectsEdit =function(iObj) {               
        return this.init(iObj);
 };
@@ -249,7 +250,7 @@ mvTimedEffectsEdit.prototype = {
                //and finally add effect timeline scrubber (for timed effects this also stores keyframes)
                                
        },
-       getTransitionListControl:function(target_out){
+       getTransitionListControl : function(target_out){
                js_log("getTransitionListControl");
                var o= '<h3>Add a Transition:</h3>';
                for(var type in mvTransLib['type']){
@@ -263,4 +264,4 @@ mvTimedEffectsEdit.prototype = {
                }       
                $j(target_out).html(o);
        }               
-}
\ No newline at end of file
+};