moved some ezc functions from templates/item.cpp to Item and ItemContent
removed: templates/item.cpp updated: some html templates which use [item] or [item_tab] removed some old html templates: item_info.html and itam_tab_info.html
This commit is contained in:
@@ -92,6 +92,7 @@ void Item::fields()
|
||||
|
||||
field(L"execute", &Item::execute);
|
||||
|
||||
field(L"has_html_template", &Item::has_html_template);
|
||||
|
||||
// may we should add a method setTypeFromInt(int t)?
|
||||
type = static_cast<Type>(type_helper);
|
||||
@@ -648,6 +649,11 @@ void Item::execute(EzcEnv & env)
|
||||
}
|
||||
|
||||
|
||||
bool Item::has_html_template()
|
||||
{
|
||||
return !html_template.empty();
|
||||
}
|
||||
|
||||
|
||||
} // namespace Winix
|
||||
|
||||
|
||||
Reference in New Issue
Block a user