Changeset 310 for trunk


Ignore:
Timestamp:
09/07/05 06:49:33 (14 years ago)
Author:
gocher
Message:

Make ESC work and make the Equation plugin skinable.

Location:
trunk/plugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/CharacterMap/popups/select_character.html

    r281 r310  
    3131window.moveTo(x, y); 
    3232 
    33 function _CloseOnEsc() 
    34 { 
    35     if ( event.keyCode == 27 ) 
    36     { 
    37         window.close(); 
    38         return; 
    39     } 
    40 } 
    41  
    4233function Init()                                                         // run on page load 
    4334{ 
    4435   __dlg_translate('CharacterMap'); 
    4536   __dlg_init(); 
    46     document.body.onkeypress = _CloseOnEsc; 
    4737 
    4838    var character = '';                                                   // set default input to empty 
    4939    View( null, character ); 
     40    document.getElementById("cancel").focus(); 
    5041} 
    5142 
     
    7667</script> 
    7768</head> 
    78 <body class="dialog" onload="Init();self.focus();"> 
     69<body class="dialog" onload="Init();"> 
    7970<table border="0" cellspacing="1" cellpadding="0" width="100%" style="cursor: pointer; background: #ADAD9C; border: 1px inset;"> 
    8071<tr> 
     
    215206<td class="character">&nbsp;</td> 
    216207</table><br /> 
    217 <form style="text-align: center;"><button type="button" name="cancel" onclick="return onCancel();" class="submitInsertTable">Cancel</button></form> 
     208<form style="text-align: center;"><button type="button" id="cancel" name="cancel" onclick="return onCancel();" class="submitInsertTable">Cancel</button></form> 
    218209</body> 
    219210</html> 
  • trunk/plugins/Equation/popups/operations.html

    r276 r310  
    2323  window.resizeTo(190, 225); 
    2424  __dlg_translate('Equation'); 
     25  __dlg_init(); 
    2526  var selected_op="none"; 
     27  document.getElementById("cancel").focus(); 
    2628}; 
    2729 
     
    8284<div id="buttons"> 
    8385  <button type="button" name="ok" onclick="return onOK();"><span>Insert</span></button> 
    84   <button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button> 
     86  <button type="button" name="cancel" id="cancel" onclick="return onCancel();"><span>Cancel</span></button> 
    8587</div> 
    8688</body> 
  • trunk/plugins/NoteServer/popups/codenote.html

    r271 r310  
    2828//  } 
    2929//  editor = param.editor; 
    30 //  document.getElementById("f_code").focus(); 
     30  document.getElementById("f_code").focus(); 
    3131//  document.getElementById("f_code").select(); 
    3232}; 
  • trunk/plugins/Template/popups/template.html

    r239 r310  
    1010  __dlg_init(); 
    1111  window.resizeTo(400, 200); 
     12  document.getElementById("cancel").focus(); 
    1213}; 
    1314 
     
    4546 
    4647  <div id="buttons"> 
    47     <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> 
     48    <button type="button" name="cancel" id="cancel" onclick="return onCancel();">Cancel</button> 
    4849  </div> 
    4950</form> 
Note: See TracChangeset for help on using the changeset viewer.