[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qsos-commits] qsos/apps/xuleditor/chrome/content editor.js
From: |
Raphaël Semeteys |
Subject: |
[Qsos-commits] qsos/apps/xuleditor/chrome/content editor.js |
Date: |
Sun, 23 Sep 2007 09:53:25 +0000 |
CVSROOT: /sources/qsos
Module name: qsos
Changes by: Raphaël Semeteys <rsemeteys> 07/09/23 09:53:25
Modified files:
apps/xuleditor/chrome/content: editor.js
Log message:
Authors were missing when a remote file is loaded
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/xuleditor/chrome/content/editor.js?cvsroot=qsos&r1=1.23&r2=1.24
Patches:
Index: editor.js
===================================================================
RCS file: /sources/qsos/qsos/apps/xuleditor/chrome/content/editor.js,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- editor.js 19 Sep 2007 06:57:36 -0000 1.23
+++ editor.js 23 Sep 2007 09:53:24 -0000 1.24
@@ -367,8 +367,7 @@
document.getElementById("f-url").value = myDoc.geturl();
document.getElementById("f-demourl").value = myDoc.getdemourl();
- //docChanged = "false";
- //myDoc = window.arguments[0];
+ //Authors
var authors = myDoc.getauthors();
var mylist = document.getElementById("f-a-list");
for(var i=0; i < authors.length; i++) {
@@ -448,6 +447,16 @@
document.getElementById("f-url").value = myDoc.geturl();
document.getElementById("f-demourl").value = myDoc.getdemourl();
+ //Authors
+ var authors = myDoc.getauthors();
+ var mylist = document.getElementById("f-a-list");
+ for(var i=0; i < authors.length; i++) {
+ var listitem = document.createElement("listitem");
+ listitem.setAttribute("label", authors[i].name);
+ listitem.setAttribute("value", authors[i].email);
+ mylist.appendChild(listitem);
+ }
+
freezeGeneric("");
//Menu management
document.getElementById("file-close").setAttribute("disabled", "false");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qsos-commits] qsos/apps/xuleditor/chrome/content editor.js,
Raphaël Semeteys <=