Changeset 90197 in spip-zone
- Timestamp:
- Jun 14, 2015, 10:46:13 AM (6 years ago)
- Location:
- _plugins_/zeroclipboard/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/zeroclipboard/trunk/javascript/spip_zeroclipboard.js
r89649 r90197 6 6 if(!$(this).prev().is('.copypaste_container')) 7 7 $(this).before('<div class="copypaste_container" style="position:relative"><a title="'+locale.zeroclipboard.link_title_copy+'" class="copypaste_link">'+locale.zeroclipboard.link_title_copy+'</a></div>'); 8 if($(this).attr('id')) 9 $(this).prev('.copypaste_container').find('a').attr('data-clipboard-target',$(this).attr('id')); 10 else if($(this).is('input') || $(this).is('textarea')) 11 $(this).prev('.copypaste_container').find('a').attr('data-clipboard-text',$(this).val()); 8 12 }); 9 13 $('.coloration_code .cadre_download').each(function(){ … … 31 35 }); 32 36 } 33 }else {37 }else if(!$(me).attr('data-clipboard-text')){ 34 38 $(me).attr('data-clipboard-text',content_data); 35 39 } 36 40 }); 41 37 42 ZeroClipboard.destroy(); 38 39 clip = new ZeroClipboard( $('.copypaste_link') ); 43 clip = new ZeroClipboard($('.copypaste_link')); 40 44 clip.on('ready', function(event) { 41 45 $('.copypaste_copied').html(locale.zeroclipboard.link_title_copy) -
_plugins_/zeroclipboard/trunk/paquet.xml
r89649 r90197 2 2 prefix="zeroclipboard" 3 3 categorie="divers" 4 version="0.4. 1"4 version="0.4.2" 5 5 etat="stable" 6 6 compatibilite="[3.0.5;3.1.*]"
Note: See TracChangeset
for help on using the changeset viewer.