Changeset 1379 for trunk/modules


Ignore:
Timestamp:
02/07/18 01:14:28 (2 years ago)
Author:
gogo
Message:

#1163 Add ability to change cell (or all cells in row) type between td/th in TableOperations? row/cell properties dialog.

Also fix th in WebKitResize?

Location:
trunk/modules/Dialogs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Dialogs/XinhaDialog.js

    r1267 r1379  
    763763{ 
    764764  return Xinha.getElementsByClassName(this.rootElem,className); 
     765}; 
     766 
     767/** Return all elements in the dialog that have the given class 
     768 * @type Array  
     769 * @param {String} className 
     770 */ 
     771Xinha.Dialog.prototype.getElementsByTagName = function(className) 
     772{ 
     773  return Xinha.getElementsByTagName(this.rootElem,className); 
     774}; 
     775 
     776/** Creates an elementin the dialog, with the given id if provided 
     777 *   (note that the id is transfomed into a unique id) 
     778 */ 
     779 
     780Xinha.Dialog.prototype.createElement = function(tagName, id) 
     781{ 
     782  var newElement = this.document.createElement(tagName); 
     783  if(typeof id == 'string') 
     784  { 
     785    newElement.id = this.createId(id); 
     786  } 
     787  return newElement; 
    765788}; 
    766789 
  • trunk/modules/Dialogs/panel-dialog.js

    r858 r1379  
    7676 
    7777Xinha.PanelDialog.prototype.getElementsByName = Xinha.Dialog.prototype.getElementsByName; 
     78 
     79Xinha.PanelDialog.prototype.getElementsByClassName = Xinha.Dialog.prototype.getElementsByClassName; 
     80 
     81Xinha.PanelDialog.prototype.createElement = Xinha.Dialog.prototype.createElement; 
Note: See TracChangeset for help on using the changeset viewer.