[Zope-CVS] CVS: Packages/Moztop/moztop/content/lib - sitesmanager.js:1.19
Paul Everitt
paul@zope.com
Thu, 17 Apr 2003 04:58:51 -0400
Update of /cvs-repository/Packages/Moztop/moztop/content/lib
In directory cvs.zope.org:/tmp/cvs-serv16619
Modified Files:
sitesmanager.js
Log Message:
Minor changes to delete a resource. We don't use Drafts anymore, so we
don't need the check.
Speaking of Drafts, you probably want to remove your moztop.rdf from
your profile directory and start over, to make the drafts folder
go away.
=== Packages/Moztop/moztop/content/lib/sitesmanager.js 1.18 => 1.19 ===
--- Packages/Moztop/moztop/content/lib/sitesmanager.js:1.18 Mon Apr 7 07:21:39 2003
+++ Packages/Moztop/moztop/content/lib/sitesmanager.js Thu Apr 17 04:58:50 2003
@@ -362,25 +362,12 @@
return true;
}
- // XXX: ok this is a hack too. If we are deleting a draft, don't
- // issue the DavClient call.
- if (resourceurn =="urn:moztop:sites:localsite:drafts:untitled1") {
- rootnode = this.getResource(this.localsiteurn);
- container = rootnode.getTarget(this.subitemsprop);
- container.makeSeq();
- container.removeChild(resourceurn);
- // XXX: Need to save the datasource
- return;
- }
-
-
// Deleting item from server
var dav = new DavClient();
dav.DELETE(resource.getValue());
// Careful, the rdfds method for refresh eats exceptions!
ds = this.getDataSource(resource.datasource.URI);
- alert("Reloading contents.rdf");
ds.refresh(false)
return;
}