Changeset 1408


Ignore:
Timestamp:
02/21/18 04:13:56 (4 months ago)
Author:
gogo
Message:

FancySelects? had a slight problem with multiple Xinha on a page, fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/FancySelects/FancySelects.js

    r1402 r1408  
    6868FancySelects.prototype.onGenerateOnce = function() 
    6969{ 
     70   
     71  var editor = this.editor; 
     72   
    7073  // Be sure we wait until jQuery is loaded 
    71   if(!(jQuery && jQuery.fn && jQuery.fn.select2 && jQuery('.toolbarElement select').length)) 
     74  if(!(jQuery && jQuery.fn && jQuery.fn.select2 && jQuery(editor._htmlArea).find('.toolbarElement select').length)) 
    7275  { 
    7376    var self = this; 
     
    7679  } 
    7780   
    78   var editor = this.editor; 
    79  
    8081  function formatFontName(opt) 
    8182  { 
     
    9899  } 
    99100   
    100   jQuery('.toolbarElement select').each(function(i,e){ 
     101  jQuery(editor._htmlArea).find('.toolbarElement select').each(function(i,e){ 
    101102    var txt = e.name; 
    102103    var el  = e; 
Note: See TracChangeset for help on using the changeset viewer.