author | Michael Krelin <hacker@klever.net> | 2006-11-13 21:42:51 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2006-11-13 21:42:51 (UTC) |
commit | ee241f175fb9de69f17723a5cf31d0025a3a2fbd (patch) (unidiff) | |
tree | 56d7a4ceb3e9e3980a40acaf0a127e4ea6555f87 | |
parent | 790a0930a6d9eb52020193b8f5aabf5da1075ba3 (diff) | |
download | fireflix-ee241f175fb9de69f17723a5cf31d0025a3a2fbd.zip fireflix-ee241f175fb9de69f17723a5cf31d0025a3a2fbd.tar.gz fireflix-ee241f175fb9de69f17723a5cf31d0025a3a2fbd.tar.bz2 |
removing linebreaks from generated html
git-svn-id: http://svn.klever.net/kin/fireflix/trunk@217 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | content/generated-content.js | 4 | ||||
-rw-r--r-- | content/generated-content.xul | 1 | ||||
-rw-r--r-- | locale/en-US/fireflix.dtd | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/content/generated-content.js b/content/generated-content.js index 0ad08bb..f9addd6 100644 --- a/content/generated-content.js +++ b/content/generated-content.js | |||
@@ -15,2 +15,6 @@ var generated = { | |||
15 | ch.copyString(this.data); | 15 | ch.copyString(this.data); |
16 | }, | ||
17 | nolf: function() { | ||
18 | this.databox.value = this.data.replace(/[\r\n]/,''); | ||
19 | document.getElementById('nolf').disabled = true; | ||
16 | } | 20 | } |
diff --git a/content/generated-content.xul b/content/generated-content.xul index 2a91efa..fd508c2 100644 --- a/content/generated-content.xul +++ b/content/generated-content.xul | |||
@@ -17,2 +17,3 @@ | |||
17 | <textbox flex="1" minheight="300" minwidth="300" id="data" multiline="true" readonly="true" /> | 17 | <textbox flex="1" minheight="300" minwidth="300" id="data" multiline="true" readonly="true" /> |
18 | <button id="nolf" label="&generated.nolf;" oncommand="generated.nolf()" /> | ||
18 | <button id="copy" label="&generated.copy;" oncommand="generated.copy()" /> | 19 | <button id="copy" label="&generated.copy;" oncommand="generated.copy()" /> |
diff --git a/locale/en-US/fireflix.dtd b/locale/en-US/fireflix.dtd index 0e158c3..46409ed 100644 --- a/locale/en-US/fireflix.dtd +++ b/locale/en-US/fireflix.dtd | |||
@@ -75,2 +75,3 @@ | |||
75 | <!ENTITY generated.copy "copy"> | 75 | <!ENTITY generated.copy "copy"> |
76 | <!ENTITY generated.nolf "remove linebreaks"> | ||
76 | 77 | ||