Diffstat (limited to 'content/generated-content.js') (more/less context) (ignore whitespace changes)
-rw-r--r-- | content/generated-content.js | 4 |
1 files changed, 4 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 @@ -4,14 +4,18 @@ var generated = { init: function() { this.fireflix = window.arguments[0]; this.data = window.arguments[1]; this.databox = document.getElementById('data'); this.databox.value = this.data; this.databox.select(); }, copy: function() { var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"] .getService(Components.interfaces.nsIClipboardHelper); ch.copyString(this.data); + }, + nolf: function() { + this.databox.value = this.data.replace(/[\r\n]/,''); + document.getElementById('nolf').disabled = true; } }; |