Ignore:
Timestamp:
03/12/07 20:25:19 (13 years ago)
Author:
ray
Message:

Ticket #980 ImageManager? color format bug

Location:
trunk/plugins/ImageManager/assets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ImageManager/assets/manager.css

    r700 r770  
    2222table { margin-top:10px; } 
    2323th, td { padding-right:3px; text-align:left; font-family:small-caption,helvetica,sans-serif; } 
     24 
    2425.buttonColor { 
    25   padding: 1px; 
     26  width :1em; 
     27  margin-left: 2px; 
    2628  cursor: default; 
     29} 
     30 
     31.buttonColor .chooser, .buttonColor .nocolor { 
     32  height: 0.6em; 
    2733  border: 1px solid; 
     34  padding: 0px 1em; 
    2835  border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight; 
    2936} 
     37 
     38.buttonColor .buttonClick { 
     39  border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow; 
     40} 
     41.buttonColor .buttonColor-hilite { 
     42  border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow; 
     43} 
     44 
     45.buttonColor .nocolor { padding: 0px; } 
     46.buttonColor .nocolor-hilite { background-color: #fff; color: #f00; } 
  • trunk/plugins/ImageManager/assets/manager.js

    r704 r770  
    3737        document.getElementById("f_align").selectedIndex = 0; 
    3838         
    39     // Hookup color pickers 
    40     var bgCol_pick = document.getElementById('bgCol_pick'); 
    41     var f_backgroundColor = document.getElementById('f_backgroundColor'); 
    42     var bgColPicker = new Xinha.colorPicker({cellsize:'5px',callback:function(color){f_backgroundColor.value=color;}}); 
    43     bgCol_pick.onclick = function() { bgColPicker.open('top,right', f_backgroundColor ); } 
    44  
    45     var bdCol_pick = document.getElementById('bdCol_pick'); 
    46     var f_borderColor = document.getElementById('f_borderColor'); 
    47     var bdColPicker = new Xinha.colorPicker({cellsize:'5px',callback:function(color){f_borderColor.value=color;}}); 
    48     bdCol_pick.onclick = function() { bdColPicker.open('top,right', f_borderColor ); } 
    49  
    50  
    5139 
    5240                var uploadForm = document.getElementById('uploadForm'); 
     
    10593      document.getElementById('f_preview').src = _backend_url + '__function=thumbs&img=' + param.f_url;       
    10694                } 
     95                 
     96                 // Hookup color pickers 
     97    new Xinha.colorPicker.InputBinding(document.getElementById('f_backgroundColor')); 
     98    new Xinha.colorPicker.InputBinding(document.getElementById('f_borderColor')); 
    10799 
    108100                document.getElementById("f_alt").focus(); 
    109  
    110     // For some reason dialog is not shrinkwrapping correctly in IE so we have to explicitly size it for now. 
    111     // if(HTMLArea.is_ie) window.resizeTo(600, 460); 
    112101        }; 
    113102 
Note: See TracChangeset for help on using the changeset viewer.