twingle/twingle/content/navigation navigation.js,1.3,1.4
[email protected] Sun, 9 Mar 2003 11:58:40 -0700 (MST)
| Newsgroups | gmane.comp.cms.oscom.twingle.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/root/twingle/twingle/content/navigation
In directory alpha.oscom.org:/tmp/cvs-serv20073/content/navigation
Modified Files:
navigation.js
Log Message:
First prototype of Midaseditor
- Saving does not work
- Switching from Source-edit to Midas-edit neither
- It's just a prototype, doesn't have much architecture thoughts behind it
Index: navigation.js
===================================================================
RCS file: /cvs/root/twingle/twingle/content/navigation/navigation.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** navigation.js 8 Mar 2003 15:24:36 -0000 1.3
--- navigation.js 9 Mar 2003 18:58:38 -0000 1.4
***************
*** 51,55 ****
this.subitemsprop = this.ncns + "subitems";
this.elementid = 'navigation-tree';
!
var twingleurl = getProfileDirURL() + 'twingle';
--- 51,57 ----
this.subitemsprop = this.ncns + "subitems";
this.elementid = 'navigation-tree';
! this.sourceurlprop = this.oscomrdfns + "sourceurl";
! this.previewurlprop = this.oscomrdfns + "previewurl";
!
var twingleurl = getProfileDirURL() + 'twingle';
***************
*** 97,111 ****
var rdf = this.getSelectedResource();
var resourcetitle = rdf.getTarget(this.titleprop).getValue();
! var tp = document.createElement("defaulttype");
! tp.id = "123";
! tp.setAttribute("resourcetitle",resourcetitle);
! tp.setAttribute("sourceurl","http://www.oscom.org");
! tp.setAttribute("previewurl","http://www.oscom.org");
var outter = document.getElementById("active-contents-tabpanels");
outter.appendChild(tp);
-
dump("\nout of openSelectedResource");
--- 99,114 ----
var rdf = this.getSelectedResource();
var resourcetitle = rdf.getTarget(this.titleprop).getValue();
+ var sourceurl = rdf.getTarget(this.sourceurlprop).getValue();
+ var previewurl = rdf.getTarget(this.previewurlprop).getValue();
! var tp = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul","articleviewer");
!
! tp.resourcetitle = resourcetitle;
! tp.sourceurl = sourceurl;
! tp.previewurl = previewurl;
var outter = document.getElementById("active-contents-tabpanels");
outter.appendChild(tp);
dump("\nout of openSelectedResource");
***************
*** 120,121 ****
--- 123,125 ----
return;
}
+