blob: f9addd6caa6865d7b2681382d05bd9c9e96c73f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
var generated = {
fireflix: null,
data: null,
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;
}
};
|