Changeset 987 for trunk/modules


Ignore:
Timestamp:
04/12/08 12:39:04 (12 years ago)
Author:
ray
Message:

#1179 minor html syntax changes

Location:
trunk/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/ColorPicker/ColorPicker.js

    r979 r987  
    866866Xinha.colorPicker.InputBinding = function(input,pickerConfig) 
    867867{ 
    868   var main = document.createElement('span'); 
     868  var doc = input.ownerDocument; 
     869  var main = doc.createElement('span'); 
    869870  main.className = "buttonColor"; 
    870871   
    871   var chooser = this.chooser = document.createElement('span'); 
     872  var chooser = this.chooser = doc.createElement('span'); 
    872873  chooser.className = "chooser"; 
    873874  if (input.value) chooser.style.backgroundColor = input.value; 
    874875  chooser.onmouseover = function() {chooser.className = "chooser buttonColor-hilite";}; 
    875876  chooser.onmouseout = function() {chooser.className = "chooser";}; 
    876   chooser.appendChild(document.createTextNode('\u00a0')); 
     877  chooser.appendChild(doc.createTextNode('\u00a0')); 
    877878  main.appendChild(chooser); 
    878   var clearColor = document.createElement('span'); 
     879  var clearColor = doc.createElement('span'); 
    879880  clearColor.className = "nocolor"; 
    880881  clearColor.onmouseover = function() {clearColor.className = "nocolor buttonColor-hilite"; clearColor.style.color='#f00'}; 
    881882  clearColor.onmouseout = function() {clearColor.className = "nocolor"; clearColor.style.color='#000'}; 
    882883  clearColor.onclick = function() {input.value ='';chooser.style.backgroundColor = ''}; 
    883   clearColor.appendChild(document.createTextNode('\u00d7')); 
     884  clearColor.appendChild(doc.createTextNode('\u00d7')); 
    884885  main.appendChild(clearColor); 
    885886   
  • trunk/modules/InsertImage/insert_image.html

    r859 r987  
    166166</div> 
    167167<div id="buttons"> 
    168 <button type="button" name="ok" onclick="return onOK();">OK</button> 
     168<button type="submit" name="ok" onclick="return onOK();">OK</button> 
    169169<button type="button" name="cancel" onclick="return onCancel();">Cancel</button> 
    170170</div> 
Note: See TracChangeset for help on using the changeset viewer.