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:
@@ -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