From 32750a7d50a5a12c32a5e1ad05a131ecb504ead1 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Sun, 4 Nov 2012 22:39:02 +0000 Subject: [PATCH] changed: ticket plugin: redirect type in editticket winix function (when there is 'close' parameter) fixed: prototype doesn't work with jquery (in ticket winix function) (prototype was loaded for lightbox) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@908 e52654a7-88a9-db11-a3e9-0013d4bc506e --- html/index_head_functions_add.html | 3 +++ plugins/ticket/editticket.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/html/index_head_functions_add.html b/html/index_head_functions_add.html index f55d1f8..35c4a9c 100755 --- a/html/index_head_functions_add.html +++ b/html/index_head_functions_add.html @@ -79,10 +79,13 @@ [if winix_function_is "ticket"] [# !! dodac lightboxa tylko jesli tickety zawieraja obrazki ] + [end] diff --git a/plugins/ticket/editticket.cpp b/plugins/ticket/editticket.cpp index 6c76192..6f2b919 100755 --- a/plugins/ticket/editticket.cpp +++ b/plugins/ticket/editticket.cpp @@ -207,7 +207,7 @@ void EditTicket::MakeGet() if( cur->request->IsParam(L"close") ) { CloseTicket(); - system->RedirectToLastItem(); + ticket_info->MakeRedirectIfPossible(*cur->request->last_item); } else {