annotate xul/content/dialog_annotate.js @ 333:2e09486e33c4

fixed problems with Netscape4 (silly error by me partly :-)
author robcast
date Tue, 02 Nov 2004 20:36:59 +0100
parents 8e4724b71b67
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
213
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
1 /*
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
2 Copyright (C) 2003 WTWG, Uni Bern
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
3
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
4 This program is free software; you can redistribute it and/or
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
5 modify it under the terms of the GNU General Public License
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
6 as published by the Free Software Foundation; either version 2
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
7 of the License, or (at your option) any later version.
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
8
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
9 This program is distributed in the hope that it will be useful,
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
12 GNU General Public License for more details.
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
13
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
14 You should have received a copy of the GNU General Public License
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
15 along with this program; if not, write to the Free Software
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
17
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
18 Author: Christian Luginbuehl, 01.05.2003 , Version Alcatraz 0.4
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
19 Author: Beat Halter, 18.03.2004, Version Alcatraz ...
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
20 */
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
21
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
22 function accept() {
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
23 var text = document.getElementById('annotation_value').value;
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
24 addTextAnnotation(text);
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
25 //opener.content.annotation(text);
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
26 return true;
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
27
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
28 }
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
29
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
30
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
31 function cancel() {
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
32
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
33 // 'true' says closing the window
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
34 return true;
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
35
8e4724b71b67 Enhanced the robustness of the annotation tab.
slarti
parents: 203
diff changeset
36 }