Dotclear


Ignore:
Timestamp:
09/19/19 17:18:10 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.15
Message:

No more flash we said!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/js/jsToolBar/popup_media.js

    r4010 r4040  
    6969    { 
    7070      var oplayer = $(`<div>${$('#public_player').val()}</div>`); 
    71       var flashvars = $('[name=FlashVars]', oplayer).val(); 
    7271 
    7372      align = $('input[name="alignment"]:checked', insert_form).val(); 
    74  
    75       var title = insert_form.elements.title.value; 
    76       if (title) { 
    77         flashvars = 'title=' + encodeURI(title) + '&amp;' + flashvars; 
    78       } 
    7973 
    8074      var vw = $('#video_w').val(); 
     
    8478        $('video', oplayer).attr('width', vw); 
    8579        $('object', oplayer).attr('width', vw); 
    86         flashvars = flashvars.replace(/(width=\d*)/, 'width=' + vw); 
    8780      } else { 
    8881        $('video', oplayer).removeAttr('width'); 
    8982        $('object', oplayer).removeAttr('width'); 
    90         flashvars = flashvars.replace(/(width=\d*)/, ''); 
    9183      } 
    9284      if (vh > 0) { 
    9385        $('video', oplayer).attr('height', vh); 
    9486        $('object', oplayer).attr('height', vh); 
    95         flashvars = flashvars.replace(/(height=\d*)/, 'height=' + vh); 
    9687      } else { 
    9788        $('video', oplayer).removeAttr('height'); 
    9889        $('object', oplayer).removeAttr('height'); 
    99         flashvars = flashvars.replace(/(height=\d*)/, ''); 
    10090      } 
    10191 
    102       $('[name=FlashVars]', oplayer).val(flashvars); 
    10392      player = oplayer.html(); 
    10493 
Note: See TracChangeset for help on using the changeset viewer.

Sites map