Changeset 1075 for trunk/plugins


Ignore:
Timestamp:
10/09/08 22:02:30 (11 years ago)
Author:
nicholasbs
Message:

UPDATES #1283 (new-dialogs version of TableOperations? is incomplete)
ids/names are now properly added to the dialog reverse lookup table

File:
1 edited

Legend:

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

    r1067 r1075  
    503503  var dialog = this.dialogTable; 
    504504   
    505   var Styler = new Xinha.InlineStyler(table, this.editor); 
     505  var Styler = new Xinha.InlineStyler(table, this.editor, dialog); 
    506506   
    507507  function apply() { 
     
    512512      if(typeof params[i] == 'function') continue; 
    513513      var val = params[i]; 
    514       if (typeof val == 'object' && val.tagName) val = val.value; 
     514      //if (val == null) continue; 
     515      if (typeof val == 'object' && val != null && val.tagName) val = val.value; 
    515516      switch (i) { 
    516517      case "caption": 
     
    619620  var dialog = this.dialogRowCell; 
    620621  dialog.getElementById('title').innerHTML = cell ? Xinha._lc("Cell Properties", "TableOperations") : Xinha._lc("Row Properties", "TableOperations"); 
    621   var Styler = new Xinha.InlineStyler(element, self.editor); 
     622  var Styler = new Xinha.InlineStyler(element, self.editor, dialog); 
    622623   
    623624  function apply() { 
    624625    var params = dialog.hide(); 
    625     Styler.applyStyle(); 
     626    Styler.applyStyle(params); 
    626627     
    627628    // various workarounds to refresh the table display (Gecko, 
Note: See TracChangeset for help on using the changeset viewer.