mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 11:09:20 +03:00
Use proper HTMLTemplateElement for all knockoutjs templates
This commit is contained in:
parent
efc2dd89e1
commit
29367a0ea7
5 changed files with 2 additions and 40 deletions
|
|
@ -1012,8 +1012,8 @@ class ServiceActions
|
|||
foreach ($aTemplates as $sName => $sFile)
|
||||
{
|
||||
$sName = \preg_replace('/[^a-zA-Z0-9]/', '', $sName);
|
||||
$sHtml .= '<script id="'.$sName.'" type="text/html" data-cfasync="false">'.
|
||||
$this->oActions->ProcessTemplate($sName, \file_get_contents($sFile)).'</script>';
|
||||
$sHtml .= '<template id="'.$sName.'">'.
|
||||
$this->oActions->ProcessTemplate($sName, \file_get_contents($sFile)).'</template>';
|
||||
}
|
||||
|
||||
unset($aTemplates);
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
<label class="e-component e-checkbox inline" data-bind="css: { 'disabled': disable() || !enable() }">
|
||||
<input type="checkbox" data-bind="checked: value, disable: disable() || !enable()" style="margin: 0 0 1px 0;" />
|
||||
<!-- ko if: labeled -->
|
||||
|
||||
<span class="sub-label i18n" data-bind="attr: {'data-i18n': label}, css: {'i18n-animation': labelAnimated}"></span>
|
||||
<!-- /ko -->
|
||||
</label>
|
||||
Loading…
Add table
Add a link
Reference in a new issue