source: trunk/plugins/SmartReplace/popups/dialog.html @ 677

Last change on this file since 677 was 677, checked in by ray, 13 years ago

set svn:keywords property for the new files & all plugins

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 1.6 KB
Line 
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
14HTMLArea = window.opener.HTMLArea;
15
16function i18n(str) {
17  return (HTMLArea._lc(str, 'SmartReplace'));
18}
19
20function Init() {
21        __dlg_translate('SmartReplace');
22        __dlg_init();
23        var param = window.dialogArguments;
24        document.getElementById('enable').checked = param.active;
25}
26 
27function 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
37function 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>
49<table style="width: 100%;border:none">
50  <tr>
51    <td style="width:15px"><input type="checkbox" id="enable"  /></td>
52    <td style="text-align:left">Enable automatic replacements</td>
53  </tr>
54  <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>
57  </tr>
58</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>
63</div>
64</form>
65</body>
66</html>
Note: See TracBrowser for help on using the repository browser.