added: 'subject' winix function is using WINIX_FILE_CHANGED message now (when changing a file's subject)
added: 'postredirect' global parameter (it can be a param or post value)
you can use this parameter in a html POST form
after processing the POST request winix will make a redirect to the value
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@881 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -1439,6 +1439,12 @@ subject.o: ../core/ugcontainer.h ../core/lastcontainer.h ../core/mounts.h
|
||||
subject.o: ../core/mountparser.h ../core/crypt.h ../core/users.h
|
||||
subject.o: ../core/groups.h ../core/group.h ../core/loadavg.h ../core/image.h
|
||||
subject.o: ../core/threadmanager.h ../core/timezones.h ../core/synchro.h
|
||||
subject.o: ../core/plugin.h ../core/pluginmsg.h ../core/system.h
|
||||
subject.o: ../core/sessionmanager.h ../core/sessioncontainer.h
|
||||
subject.o: ../functions/functions.h ../templates/templates.h
|
||||
subject.o: ../templates/patterncacher.h ../templates/indexpatterns.h
|
||||
subject.o: ../templates/patterns.h ../templates/changepatterns.h
|
||||
subject.o: ../templates/htmltextstream.h ../core/sessionmanager.h
|
||||
template.o: template.h functionbase.h ../core/item.h
|
||||
template.o: ../../pikotools/space/space.h ../../pikotools/textstream/types.h
|
||||
template.o: ../../pikotools/date/date.h ../db/db.h ../db/dbbase.h
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* Copyright (c) 2008-2012, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "subject.h"
|
||||
#include "core/plugin.h"
|
||||
|
||||
|
||||
namespace Fun
|
||||
@@ -48,6 +49,10 @@ void Subject::EditDirSubject()
|
||||
cur->request->PostVar(L"subject", dir.subject);
|
||||
db->EditSubjectById(dir, dir.id);
|
||||
|
||||
// !! IMPROVE ME
|
||||
// we need something like WINIX_DIR_CHANGED message
|
||||
//plugin.Call(WINIX______CHANGED, cur->request->dir_tab.back());
|
||||
|
||||
system->RedirectToLastDir();
|
||||
}
|
||||
|
||||
@@ -58,6 +63,8 @@ void Subject::EditFileSubject()
|
||||
cur->request->PostVar(L"subject", cur->request->item.subject);
|
||||
db->EditSubjectById(cur->request->item, cur->request->item.id);
|
||||
|
||||
plugin.Call(WINIX_FILE_CHANGED, &cur->request->item);
|
||||
|
||||
system->RedirectTo(cur->request->item);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user