Changeset 946


Ignore:
Timestamp:
01/27/08 01:52:32 (12 years ago)
Author:
ray
Message:
  • #1040 htmlRemoveTags doesn't work in IE
  • #1015 Mozilla shows scrollbars on click in Stylist
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r945 r946  
    746746  this.popupURL = "popups/"; 
    747747 
    748   /** Remove given tags when rendering the HTML (these have to be a regexp, or null if this functionality is not desired)<br /> 
     748  /** RegExp allowing to remove certain HTML tags when rendering the HTML.<br /> 
     749   *  Example: remove span and font tags 
     750   *  <code> 
     751   *    xinha_config.htmlRemoveTags = /span|font/; 
     752   *  </code> 
    749753   *  Default: <code>null</code> 
    750754   *  @type RegExp|null 
     
    51615165  var newObj = {}; 
    51625166 
    5163   // check for array objects 
    5164   if ( obj.constructor.toString().match( /\s*function Array\(/ ) ) 
     5167  // check for array and RegExp objects 
     5168  if ( obj.constructor.toString().match( /\s*function Array\(/ ) || obj.constructor.toString().match( /\s*function RegExp\(/ )) 
    51655169  { 
    51665170    newObj = obj.constructor(); 
     
    61506154    for ( var prop in o ) 
    61516155    { 
    6152       s += prop + ' = ' + o[prop] + '\n'; 
    6153     } 
     6156                s += prop + ' = ' + o[prop] + '\n'; 
     6157          } 
    61546158    var x = window.open("", "debugger"); 
    61556159    x.document.write('<pre>' + s + '</pre>'); 
    61566160  } 
    6157 } 
     6161    } 
    61586162if ( !Array.prototype.contains ) 
    61596163{ 
  • trunk/plugins/Stylist/stylist.js

    r870 r946  
    180180    { 
    181181      var anch = document.createElement('a'); 
     182      anch.onfocus = function () { this.blur() } // prevent dotted line around link that causes horizontal scrollbar 
    182183      anch._stylist_className = className.trim(); 
    183184      anch._stylist_applied   = applied; 
Note: See TracChangeset for help on using the changeset viewer.