Ignore:
Timestamp:
02/17/07 01:32:00 (13 years ago)
Author:
ray
Message:

SmartReplace? update: now uses inline dialog for settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/SmartReplace/dialog.html

    r751 r752  
    1 <!DOCTYPE html 
    2      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    3     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    4  
    5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    6 <head> 
    7   <title>SmartReplace Settings</title> 
    8   <script type="text/javascript" src="../../../popups/popup.js"></script> 
    9   <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" /> 
    10  
    11   <script type="text/javascript"> 
    12    window.resizeTo(350, 200); 
    13  
    14 Xinha = window.opener.Xinha; 
    15  
    16 function i18n(str) { 
    17   return (Xinha._lc(str, 'SmartReplace')); 
    18 } 
    19  
    20 function Init() { 
    21         __dlg_translate('SmartReplace'); 
    22         __dlg_init(); 
    23         var param = window.dialogArguments; 
    24         document.getElementById('enable').checked = param.active; 
    25 } 
    26    
    27 function onOK() { 
    28          
    29  var param = { 
    30         enable  : document.getElementById("enable").checked,  
    31         convert : document.getElementById("convert").checked 
    32  }; 
    33   __dlg_close(param); 
    34   return false; 
    35 } 
    36  
    37 function onCancel() { 
    38   __dlg_close(null); 
    39   return false; 
    40 } 
    41  
    42 </script> 
    43  
    44 </head> 
    45  
    46 <body class="dialog" onload="Init()"> 
    47 <div class="title">SmartReplace Settings</div> 
    48 <form action=""> 
     1<h1 id="[h1]"><l10n>SmartReplace Settings</l10n></h1> 
     2<div style="margin-left: 10px;"> 
    493<table style="width: 100%;border:none"> 
    504  <tr> 
    51     <td style="width:15px"><input type="checkbox" id="enable"  /></td> 
    52     <td style="text-align:left">Enable automatic replacements</td> 
     5    <td style="width:15px"><input type="checkbox" id="[enable]" name="[enable]"  /></td> 
     6    <td style="text-align:left"><l10n>Enable automatic replacements</l10n></td> 
    537  </tr> 
    548  <tr> 
    55     <td style="width:15px"><input type="checkbox" id="convert" /></td> 
    56     <td style="text-align:left">Convert all quotes and dashes in the current document</td> 
     9    <td style="width:15px"><input type="checkbox" id="[convert]" name="[convert]" /></td> 
     10    <td style="text-align:left"><l10n>Convert all quotes and dashes in the current document</l10n></td> 
    5711  </tr> 
    5812</table> 
    59  
    60 <div id="buttons"> 
    61   <button type="submit" name="ok" onclick="return onOK();">OK</button> 
    62   <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> 
     13  <div style="margin-top: 10px;"> 
     14    <input type="button" id="[ok]"     value="_(OK)"     /> 
     15    <input type="button" id="[cancel]" value="_(Cancel)" /> 
     16  </div> 
    6317</div> 
    64 </form> 
    65 </body> 
    66 </html> 
Note: See TracChangeset for help on using the changeset viewer.