|
|
|
@ -166,12 +166,12 @@ void CInterfaceItemEdition::CItemEditionWindow::infoReceived()
|
|
|
|
|
{
|
|
|
|
|
CGroupHTML *pGH = dynamic_cast<CGroupHTML*>(CWidgetManager::getInstance()->getElementFromId("ui:interface:web_transactions:content:html"));
|
|
|
|
|
if (pGH)
|
|
|
|
|
pGH->browse(text.substr(3, text.size()-3).toString().c_str());
|
|
|
|
|
pGH->browse(text.substr(4, text.size()-4).toString().c_str());
|
|
|
|
|
text = localDesc;
|
|
|
|
|
}
|
|
|
|
|
else if (text.size() > 3 && text[0]=='@' && text[1]=='L' && text[2]=='U' && text[3]=='A')
|
|
|
|
|
{
|
|
|
|
|
string code = text.substr(3, text.size()-3).toString();
|
|
|
|
|
string code = text.substr(4, text.size()-4).toString();
|
|
|
|
|
if (!code.empty())
|
|
|
|
|
CLuaManager::getInstance().executeLuaScript(code);
|
|
|
|
|
text = localDesc;
|
|
|
|
@ -310,12 +310,12 @@ void CInterfaceItemEdition::CItemEditionWindow::begin()
|
|
|
|
|
{
|
|
|
|
|
CGroupHTML *pGH = dynamic_cast<CGroupHTML*>(CWidgetManager::getInstance()->getElementFromId("ui:interface:web_transactions:content:html"));
|
|
|
|
|
if (pGH)
|
|
|
|
|
pGH->browse(text.substr(3, text.size()-3).toString().c_str());
|
|
|
|
|
pGH->browse(text.substr(4, text.size()-4).toString().c_str());
|
|
|
|
|
text = localDesc;
|
|
|
|
|
}
|
|
|
|
|
else if (text.size() > 3 && text[0]=='@' && text[1]=='L' && text[2]=='U' && text[3]=='A')
|
|
|
|
|
else if (text.size() > 4 && text[0]=='@' && text[1]=='L' && text[2]=='U' && text[3]=='A')
|
|
|
|
|
{
|
|
|
|
|
string code = text.substr(3, text.size()-3).toString();
|
|
|
|
|
string code = text.substr(4, text.size()-4).toString();
|
|
|
|
|
if (!code.empty())
|
|
|
|
|
CLuaManager::getInstance().executeLuaScript(code);
|
|
|
|
|
text = localDesc;
|
|
|
|
|