Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/blowupConfig/config.js

    r2358 r2566  
    88          toggleDisable($('#blog_title_p')); 
    99     } 
    10       
     10 
    1111     $('#blog_title_hide').click(function() { 
    1212          toggleDisable($('#blog_title_f')); 
     
    1616          toggleDisable($('#blog_title_p')); 
    1717     }); 
    18       
     18 
    1919     // Upload form 
    2020     if ($('#top_image').val() == 'custom') { 
     
    2323          $('#uploader').hide(); 
    2424     } 
    25       
     25 
    2626     $('#top_image').change(function() { 
    2727          if (this.value == 'custom') { 
     
    3434          } 
    3535     }); 
    36       
     36 
    3737     // Predefined styles 
    3838     var styles_combo = document.createElement('select'); 
     
    4040     $(styles_combo).append('<option value="none">none</option>'); 
    4141     $(styles_combo).attr('title',dotclear.msg.predefined_style_title); 
    42       
     42 
    4343     for (var style in dotclear.blowup_styles) { 
    4444          styles_option = document.createElement('option'); 
     
    4747          $(styles_combo).append(styles_option); 
    4848     } 
    49       
     49 
    5050     $('#theme_config').prepend(styles_combo); 
    5151     $(styles_combo).wrap('<div class="fieldset"></div>').before('<h3>' + dotclear.msg.predefined_styles + '</h3>').wrap('<p></p>'); 
    52       
     52 
    5353     $(styles_combo).change(function() { 
    5454          $(this.form).find('input[type=text]').val('').css({backgroundColor: '#FFF', color: '#000'}); 
     
    6060          } 
    6161     }); 
    62       
     62 
    6363     // Code import 
    6464     var e = $('#bu_export_content'); 
    6565     e.toggle(); 
    66       
     66 
    6767     var img = document.createElement('img'); 
    6868     img.src = dotclear.img_plus_src; 
     
    7272     $(document.createTextNode(' ')).prependTo('#bu_export'); 
    7373     $(img).prependTo('#bu_export'); 
    74       
     74 
    7575     $(img).click(function() { 
    7676          if (e.css('display') == 'none') { 
     
    8383          e.toggle(); 
    8484     }); 
    85       
     85 
    8686     var a = document.createElement('a'); 
    8787     a.href = '#'; 
    8888     $(a).text(dotclear.msg.apply_code); 
    89       
     89 
    9090     e.append(a); 
    91       
     91 
    9292     $(a).click(function() { 
    9393          var code = e.find('#export_code'); 
    9494          if (code.size() == 0) { return false; } 
    95            
     95 
    9696          applyBlowupValues(code.val()); 
    9797          return false; 
    9898     }); 
    99       
     99 
    100100     function toggleDisable(e) { 
    101101          if (e.attr('disabled')) { 
     
    105105          } 
    106106     } 
    107       
     107 
    108108     function applyBlowupValues(code) { 
    109109          code = code.replace("\n",""); 
     
    111111          var reg = /^(.+):"([^"]*)"(;?)\s*$/; 
    112112          var s = code.match(re); 
    113            
     113 
    114114          if (typeof(s) == 'object' && s.length > 0) { 
    115115               var member, target, value, t_e; 
     
    122122          } 
    123123     } 
    124       
     124 
    125125     function updateValueField(e,v) { 
    126126          e.val(v); 
     
    132132          } 
    133133     } 
    134       
     134 
    135135     function getColorLum(color) 
    136136     { 
     
    138138                    parseInt('0x' + color.substring(3, 5)) / 255, 
    139139                    parseInt('0x' + color.substring(5, 7)) / 255]; 
    140            
     140 
    141141          return (Math.min(rgb[0], Math.min(rgb[1], rgb[2])) + Math.max(rgb[0], Math.max(rgb[1], rgb[2]))) / 2; 
    142142     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map