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

Ticket #980 ImageManager? color format bug

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

Legend:

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

    r700 r770  
    2727 
    2828.buttonColor { 
    29   padding: 1px; 
     29  width :1em; 
     30  margin-left: 2px; 
    3031  cursor: default; 
     32} 
     33 
     34.buttonColor .chooser, .buttonColor .nocolor { 
     35  height: 0.6em; 
    3136  border: 1px solid; 
     37  padding: 0px 1em; 
    3238  border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight; 
    3339} 
     40 
     41.buttonColor .buttonClick { 
     42  border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow; 
     43} 
     44.buttonColor .buttonColor-hilite { 
     45  border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow; 
     46} 
     47 
     48.buttonColor .nocolor { padding: 0px; } 
     49.buttonColor .nocolor-hilite { background-color: #fff; color: #f00; } 
  • trunk/plugins/ExtendedFileManager/assets/manager.js

    r740 r770  
    7171     
    7272    var editor = window.dialogArguments.editor; 
    73     if (manager_mode == 'image' && typeof Xinha.colorPicker != "undefined" && document.getElementById('bgCol_pick')) { 
    74         // Hookup color pickers 
    75         var pickerConfig = { 
    76             cellsize:editor.config.colorPickerCellSize, 
    77             granularity:editor.config.colorPickerGranularity, 
    78             websafe:editor.config.colorPickerWebSafe, 
    79             savecolors:editor.config.colorPickerSaveColors 
    80         }; 
    81  
    82         var bgCol_pick = document.getElementById('bgCol_pick'); 
    83         var f_backgroundColor = document.getElementById('f_backgroundColor'); 
    84         pickerConfig.callback = function(color){f_backgroundColor.value=color;}; 
    85         var bgColPicker = new Xinha.colorPicker(pickerConfig); 
    86         bgCol_pick.onclick = function() { bgColPicker.open('top,right', f_backgroundColor ); } 
    87  
    88         var bdCol_pick = document.getElementById('bdCol_pick'); 
    89         var f_borderColor = document.getElementById('f_borderColor'); 
    90         pickerConfig.callback = function(color){f_borderColor.value=color;}; 
    91         var bdColPicker = new Xinha.colorPicker(pickerConfig); 
    92         bdCol_pick.onclick = function() { bdColPicker.open('top,right', f_borderColor ); } 
    93     } 
    9473 
    9574    var param = window.dialogArguments.param; 
     
    238217        target_select.appendChild(opt); 
    239218        target_select.onchange = onTargetChanged; 
     219         
    240220        document.getElementById("f_href").focus(); 
    241221    } 
     
    257237                } 
    258238        } 
     239    } 
     240    if (manager_mode == 'image' && typeof Xinha.colorPicker != "undefined" && document.getElementById('f_backgroundColor')) { 
     241      // Hookup color pickers 
     242 
     243      var pickerConfig = { 
     244        cellsize:editor.config.colorPickerCellSize, 
     245        granularity:editor.config.colorPickerGranularity, 
     246        websafe:editor.config.colorPickerWebSafe, 
     247        savecolors:editor.config.colorPickerSaveColors 
     248      }; 
     249 
     250      new Xinha.colorPicker.InputBinding(document.getElementById('f_backgroundColor'),pickerConfig); 
     251      new Xinha.colorPicker.InputBinding(document.getElementById('f_borderColor'),pickerConfig); 
    259252    } 
    260253} 
Note: See TracChangeset for help on using the changeset viewer.