* Added User.popLocation() and User.popLocation() methods for temporarily storing a user's location, ie. to get back where the user came from when it was necessary to login

* Removed Root.searchSites() method (will be back later)
 * Added checks for empty searches in Site.search_action()
This commit is contained in:
Tobi Schäfer 2007-10-17 16:25:01 +00:00
parent 3d0fae4302
commit 1c3c51a0e1
7 changed files with 46 additions and 72 deletions

View file

@ -90,10 +90,10 @@ HopObject.prototype.delete_action = function() {
if (req.postParams.proceed) {
//try {
var str = this.toString();
var href = this._parent.href();
var url = this._parent.href();
this.constructor.remove.call(this, this);
res.message = gettext("{0} was successfully deleted.", str);
res.redirect(session.data.retrace || href);
res.redirect(User.popLocation() || url);
/*} catch(ex) {
res.message = ex;
app.log(ex);