Dotclear


Ignore:
Timestamp:
12/08/16 12:05:28 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add legend and title insertion option for image insertion in entry, closes #2227

File:
1 edited

Legend:

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

    r2768 r3446  
    3535               tb.elements.img_select.data.description = $('input[name="description"]',insert_form).val(); 
    3636               tb.elements.img_select.data.url = tb.stripBaseURL(insert_form.elements.url.value); 
     37 
     38               var media_legend = $('input[name="legend"]:checked',insert_form).val(); 
     39               if (media_legend != '' && media_legend != 'title' && media_legend != 'none') { 
     40                    media_legend = 'legend'; 
     41               } 
     42               if (media_legend != 'legend') { 
     43                    tb.elements.img_select.data.description = ''; 
     44               } 
     45               if (media_legend == 'none') { 
     46                    tb.elements.img_select.data.title = ''; 
     47               } 
     48 
    3749               tb.elements.img_select.fncall[tb.mode].call(tb); 
    3850          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map