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 | |||
@@ -1,17 +1,21 @@ | |||
1 | var generated = { | 1 | var generated = { |
2 | fireflix: null, | 2 | fireflix: null, |
3 | data: null, | 3 | data: null, |
4 | 4 | ||
5 | init: function() { | 5 | init: function() { |
6 | this.fireflix = window.arguments[0]; | 6 | this.fireflix = window.arguments[0]; |
7 | this.data = window.arguments[1]; | 7 | this.data = window.arguments[1]; |
8 | this.databox = document.getElementById('data'); | 8 | this.databox = document.getElementById('data'); |
9 | this.databox.value = this.data; | 9 | this.databox.value = this.data; |
10 | this.databox.select(); | 10 | this.databox.select(); |
11 | }, | 11 | }, |
12 | copy: function() { | 12 | copy: function() { |
13 | var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"] | 13 | var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"] |
14 | .getService(Components.interfaces.nsIClipboardHelper); | 14 | .getService(Components.interfaces.nsIClipboardHelper); |
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 | } |
17 | }; | 21 | }; |
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 | |||
@@ -1,20 +1,21 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> | 2 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
3 | <?xsml-stylesheet href="fireflix.css" type="text/css"?> | 3 | <?xsml-stylesheet href="fireflix.css" type="text/css"?> |
4 | <!DOCTYPE dialog SYSTEM "chrome://fireflix/locale/fireflix.dtd"> | 4 | <!DOCTYPE dialog SYSTEM "chrome://fireflix/locale/fireflix.dtd"> |
5 | <dialog | 5 | <dialog |
6 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | 6 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
7 | id="generated_content" | 7 | id="generated_content" |
8 | buttons="accept" | 8 | buttons="accept" |
9 | defaultbutton="accept" | 9 | defaultbutton="accept" |
10 | title="&generated.title;" | 10 | title="&generated.title;" |
11 | onload="generated.init()" | 11 | onload="generated.init()" |
12 | > | 12 | > |
13 | 13 | ||
14 | <script src="generated-content.js" type="application/x-javascript"/> | 14 | <script src="generated-content.js" type="application/x-javascript"/> |
15 | 15 | ||
16 | <vbox class="generated wholething" flex="1"> | 16 | <vbox class="generated wholething" flex="1"> |
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()" /> |
19 | </vbox> | 20 | </vbox> |
20 | </dialog> | 21 | </dialog> |
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 | |||
@@ -12,72 +12,73 @@ | |||
12 | 12 | ||
13 | <!ENTITY copying.title "Filreflix: copying policy"> | 13 | <!ENTITY copying.title "Filreflix: copying policy"> |
14 | 14 | ||
15 | <!-- Sidebar --> | 15 | <!-- Sidebar --> |
16 | 16 | ||
17 | <!ENTITY panel.auth_info "Authorization info"> | 17 | <!ENTITY panel.auth_info "Authorization info"> |
18 | <!ENTITY panel.no_auth_info "No auth info available"> | 18 | <!ENTITY panel.no_auth_info "No auth info available"> |
19 | 19 | ||
20 | <!ENTITY panel.auth.auth.label "Authorize"> | 20 | <!ENTITY panel.auth.auth.label "Authorize"> |
21 | <!ENTITY panel.auth.done.label "Authorization complete"> | 21 | <!ENTITY panel.auth.done.label "Authorization complete"> |
22 | <!ENTITY panel.auth.flickr.label "Flickr"> | 22 | <!ENTITY panel.auth.flickr.label "Flickr"> |
23 | <!ENTITY panel.auth.flickr.tip "Open Flickr in new tab"> | 23 | <!ENTITY panel.auth.flickr.tip "Open Flickr in new tab"> |
24 | <!ENTITY panel.auth.unauth.label "Sign off"> | 24 | <!ENTITY panel.auth.unauth.label "Sign off"> |
25 | 25 | ||
26 | <!ENTITY panel.tabs.search "Search" > | 26 | <!ENTITY panel.tabs.search "Search" > |
27 | <!ENTITY panel.tabs.sets "Sets" > | 27 | <!ENTITY panel.tabs.sets "Sets" > |
28 | <!ENTITY panel.tabs.tags "Tags" > | 28 | <!ENTITY panel.tabs.tags "Tags" > |
29 | <!ENTITY panel.tabs.upload "Upload" > | 29 | <!ENTITY panel.tabs.upload "Upload" > |
30 | 30 | ||
31 | <!ENTITY panel.search.cmd_search.label "Search" > | 31 | <!ENTITY panel.search.cmd_search.label "Search" > |
32 | <!ENTITY panel.search.search_for.label "Search for:" > | 32 | <!ENTITY panel.search.search_for.label "Search for:" > |
33 | <!ENTITY panel.search.mode.tagsonly.label "tags"> | 33 | <!ENTITY panel.search.mode.tagsonly.label "tags"> |
34 | <!ENTITY panel.search.mode.tagsonly.tip "Search tags only"> | 34 | <!ENTITY panel.search.mode.tagsonly.tip "Search tags only"> |
35 | <!ENTITY panel.search.mode.mine.label "mine"> | 35 | <!ENTITY panel.search.mode.mine.label "mine"> |
36 | <!ENTITY panel.search.col.title.label "Title"> | 36 | <!ENTITY panel.search.col.title.label "Title"> |
37 | <!ENTITY panel.search.cmd_search_open.label "Open"> | 37 | <!ENTITY panel.search.cmd_search_open.label "Open"> |
38 | <!ENTITY panel.search.cmd_search_prev_page.label " « "> | 38 | <!ENTITY panel.search.cmd_search_prev_page.label " « "> |
39 | <!ENTITY panel.search.cmd_search_next_page.label " » "> | 39 | <!ENTITY panel.search.cmd_search_next_page.label " » "> |
40 | 40 | ||
41 | <!ENTITY panel.sets.name.label "Set"> | 41 | <!ENTITY panel.sets.name.label "Set"> |
42 | <!ENTITY panel.sets.name.tip "Photoset name"> | 42 | <!ENTITY panel.sets.name.tip "Photoset name"> |
43 | <!ENTITY panel.sets.photos.label "Photos"> | 43 | <!ENTITY panel.sets.photos.label "Photos"> |
44 | <!ENTITY panel.sets.photos.tip "Number of photos in set"> | 44 | <!ENTITY panel.sets.photos.tip "Number of photos in set"> |
45 | 45 | ||
46 | <!ENTITY panel.sets.cmd_refresh_sets "Refresh"> | 46 | <!ENTITY panel.sets.cmd_refresh_sets "Refresh"> |
47 | <!ENTITY panel.sets.cmd_properties "Properties"> | 47 | <!ENTITY panel.sets.cmd_properties "Properties"> |
48 | 48 | ||
49 | <!ENTITY panel.sets.generate_html "Generate HTML"> | 49 | <!ENTITY panel.sets.generate_html "Generate HTML"> |
50 | 50 | ||
51 | <!ENTITY panel.setphotos.title.label "Title"> | 51 | <!ENTITY panel.setphotos.title.label "Title"> |
52 | <!ENTITY panel.setphotos.title.tip "Picture title"> | 52 | <!ENTITY panel.setphotos.title.tip "Picture title"> |
53 | <!ENTITY panel.setphotos.taken.label "Taken"> | 53 | <!ENTITY panel.setphotos.taken.label "Taken"> |
54 | <!ENTITY panel.setphotos.taken.tip "When the picture was taken"> | 54 | <!ENTITY panel.setphotos.taken.tip "When the picture was taken"> |
55 | <!ENTITY panel.setphotos.upload.label "Uploaded"> | 55 | <!ENTITY panel.setphotos.upload.label "Uploaded"> |
56 | <!ENTITY panel.setphotos.upload.tip "When the picure was uploaded"> | 56 | <!ENTITY panel.setphotos.upload.tip "When the picure was uploaded"> |
57 | 57 | ||
58 | <!ENTITY panel.tagslist.tag.label "Tag"> | 58 | <!ENTITY panel.tagslist.tag.label "Tag"> |
59 | 59 | ||
60 | <!ENTITY panel.uploadlist.file.label "File name"> | 60 | <!ENTITY panel.uploadlist.file.label "File name"> |
61 | <!ENTITY panel.uploadlist.title.label "Title"> | 61 | <!ENTITY panel.uploadlist.title.label "Title"> |
62 | <!ENTITY panel.uploadlist.status.label "Status"> | 62 | <!ENTITY panel.uploadlist.status.label "Status"> |
63 | 63 | ||
64 | <!ENTITY panel.upload_props.filename.label "File:"> | 64 | <!ENTITY panel.upload_props.filename.label "File:"> |
65 | <!ENTITY panel.upload_props.title.label "Title:"> | 65 | <!ENTITY panel.upload_props.title.label "Title:"> |
66 | <!ENTITY panel.upload_props.tags.label "Tags:"> | 66 | <!ENTITY panel.upload_props.tags.label "Tags:"> |
67 | 67 | ||
68 | <!ENTITY panel.uploads.upload.label "Upload"> | 68 | <!ENTITY panel.uploads.upload.label "Upload"> |
69 | <!ENTITY panel.uploads.clear.label "Clear"> | 69 | <!ENTITY panel.uploads.clear.label "Clear"> |
70 | <!ENTITY panel.uploads.remove.label "Remove"> | 70 | <!ENTITY panel.uploads.remove.label "Remove"> |
71 | <!ENTITY panel.uploads.add.label "Add"> | 71 | <!ENTITY panel.uploads.add.label "Add"> |
72 | <!ENTITY panel.uploads.generate_html "Generate HTML"> | 72 | <!ENTITY panel.uploads.generate_html "Generate HTML"> |
73 | 73 | ||
74 | <!ENTITY generated.title "Fireflix: Generated content"> | 74 | <!ENTITY generated.title "Fireflix: Generated content"> |
75 | <!ENTITY generated.copy "copy"> | 75 | <!ENTITY generated.copy "copy"> |
76 | <!ENTITY generated.nolf "remove linebreaks"> | ||
76 | 77 | ||
77 | <!ENTITY browser.sidebar.label "Fireflix"> | 78 | <!ENTITY browser.sidebar.label "Fireflix"> |
78 | <!ENTITY browser.sidebar.title "Fireflix"> | 79 | <!ENTITY browser.sidebar.title "Fireflix"> |
79 | 80 | ||
80 | <!ENTITY photosetprops.title "Photoset properties"> | 81 | <!ENTITY photosetprops.title "Photoset properties"> |
81 | <!ENTITY photosetprops.set_title.label "Photoset title:"> | 82 | <!ENTITY photosetprops.set_title.label "Photoset title:"> |
82 | <!ENTITY photosetprops.set_desc.label "Photoset description:"> | 83 | <!ENTITY photosetprops.set_desc.label "Photoset description:"> |
83 | 84 | ||