Changeset 1117


Ignore:
Timestamp:
11/12/08 13:07:40 (5 years ago)
Author:
ray
Message:
  • removed a console.log() call from Linker
  • make icon for wysiwygmode and the one in the dialog caption iconset-able
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1113 r1117  
    11121112   * @private 
    11131113   */ 
    1114   this.iconList = {} 
     1114  this.iconList =  
     1115  { 
     1116    dialogCaption : _editor_url + 'images/xinha-small-icon.gif', 
     1117    wysiwygmode : [_editor_url + 'images/ed_buttons_main.png',7,1] 
     1118  } 
    11151119  // initialize tooltips from the I18N module and generate correct image path 
    11161120  for ( var i in this.btnList ) 
     
    22752279          icon = icon.getElementsByTagName('default')[0]; 
    22762280        } 
    2277         path = _editor_url + getTextContent(icon.getElementsByTagName('path')[0]); 
     2281        path = getTextContent(icon.getElementsByTagName('path')[0]); 
     2282        path = (!/^\//.test(path) ? _editor_url : '') + path; 
    22782283        type = icon.getAttribute('type'); 
    22792284        if (type == 'map') 
     
    31823187    case "textmode": 
    31833188      this.firePluginEvent('onBeforeMode', 'textmode'); 
    3184       this._toolbarObjects.htmlmode.swapImage([this.imgURL('images/ed_buttons_main.png'),7,1]);  
     3189      this._toolbarObjects.htmlmode.swapImage(this.config.iconList.wysiwygmode);  
    31853190      this.setCC("iframe"); 
    31863191      html = this.outwardHtml(this.getHTML()); 
  • trunk/modules/Dialogs/XinhaDialog.js

    r1098 r1117  
    236236  { 
    237237    className = 'icon'; 
    238     src = _editor_url + 'images/xinha-small-icon.gif'; 
     238    src = editor.config.iconList.dialogCaption; 
    239239    style.position = 'absolute'; 
    240240    style.top = '3px'; 
  • trunk/plugins/Linker/pluginMethods.js

    r1097 r1117  
    553553  for (var i=0; i<enabledTargets.length; i++) 
    554554  { 
    555     console.log(this.dialog.getElementById(enabledTargets[i])); 
    556     console.log("is checked: " + this.dialog.getElementById(enabledTargets[i]).checked); 
    557555    if (this.dialog.getElementById(enabledTargets[i]).checked == true) 
    558556    { 
Note: See TracChangeset for help on using the changeset viewer.