mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-15 22:50:36 +02:00
fixed image renders
This commit is contained in:
parent
6bf2319a9e
commit
a7da97f27d
@ -61,8 +61,14 @@ void ImageRenderer::renderHead(const Renderable* pRenderable, const RenderContex
|
||||
poco_assert_dbg (pRenderable->type() == typeid(Poco::WebWidgets::Image));
|
||||
const Image* pImage = static_cast<const Poco::WebWidgets::Image*>(pRenderable);
|
||||
ostr << "new Ext.Panel({border:false,bodyBorder:false,";
|
||||
ostr << "id:'" << pImage->id() << "',";
|
||||
ostr << "html:";
|
||||
writeHTML(pImage, ostr);
|
||||
ostr << ",closeAction:'hide'";
|
||||
if (!pImage->isVisible())
|
||||
{
|
||||
ostr << ",hidden:true";
|
||||
}
|
||||
ostr << "})";
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ void RequestHandler::handleAjaxRequest(Poco::Net::HTTPServerRequest& request, Po
|
||||
|
||||
it = args.begin();
|
||||
RequestProcessor* pProc = _pApp->getAjaxProcessor(id);
|
||||
poco_assert_dbg (pProc);
|
||||
//poco_assert_dbg (pProc);
|
||||
if (!pProc)
|
||||
{
|
||||
response.setStatusAndReason(Poco::Net::HTTPResponse::HTTP_INTERNAL_SERVER_ERROR, "no requestprocessor found");
|
||||
|
Loading…
x
Reference in New Issue
Block a user