twingle/twingle/content/navigation navigation.js,1.6,1.7
[email protected] Tue, 11 Mar 2003 03:23:46 -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-serv1985/content/navigation
Modified Files:
navigation.js
Log Message:
check if values are in the RDF file and if there's a saveurl provided
Index: navigation.js
===================================================================
RCS file: /cvs/root/twingle/twingle/content/navigation/navigation.js,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** navigation.js 10 Mar 2003 18:07:54 -0000 1.6
--- navigation.js 11 Mar 2003 10:23:43 -0000 1.7
***************
*** 107,114 ****
var rdf = this.getSelectedResource();
var resourcetitle = rdf.getTarget(this.titleprop).getValue();
! var sourceurl = rdf.getTarget(this.sourceurlprop).getValue();
! var saveurl = rdf.getTarget(this.saveurlprop).getValue();
! var previewurl = rdf.getTarget(this.previewurlprop).getValue();
var tp = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul","articleviewer");
--- 107,127 ----
var rdf = this.getSelectedResource();
var resourcetitle = rdf.getTarget(this.titleprop).getValue();
!
! var _tmpprop;
! var sourceurl = "";
! if (_tmpprop = rdf.getTarget(this.sourceurlprop)) {
! sourceurl = _tmpprop.getValue();
! }
! var saveurl = "";
! if (_tmpprop = rdf.getTarget(this.saveurlprop)) {
! saveurl = _tmpprop.getValue();
! }
!
! var previewurl = "";
! if (_tmpprop = rdf.getTarget(this.previewurlprop)) {
! previewurl = _tmpprop.getValue();
! }
!
var tp = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul","articleviewer");