Elastic: Enable raw script editing on mobile

pull/6180/head
Aleksander Machniak 7 years ago
parent 58bd066c6d
commit 2d99e32beb

@ -1339,9 +1339,10 @@ class rcube_sieve_engine
$out = $hiddenfields->show();
$txtarea = new html_textarea(array(
'id' => 'rawfiltersettxt',
'name' => 'rawsetcontent',
'rows' => '15'
'id' => 'rawfiltersettxt',
'name' => 'rawsetcontent',
'class' => 'form-control',
'rows' => '15'
));
$out .= $txtarea->show($script_post !== null ? $script_post : ($script !== false ? rtrim($script) : ''));
@ -1364,7 +1365,7 @@ class rcube_sieve_engine
'enctype' => 'multipart/form-data',
), $out);
return $attrib['close-form'] ? $out : str_replace('/</form>', '', $out);
return str_replace('</form>', '', $out);
}
function filterset_form($attrib)

@ -63,7 +63,7 @@
<ul class="toolbarmenu listing" id="filtersetmenu-menu" role="menu" aria-labelledby="aria-label-setactions">
<roundcube:button type="link-menuitem" command="plugin.managesieve-setadd" label="managesieve.filtersetadd" class="create" classAct="create active" />
<roundcube:if condition="env:raw_sieve_editor != false" />
<roundcube:button type="link-menuitem" command="plugin.managesieve-seteditraw" label="managesieve.filterseteditraw" class="edit" classAct="edit active" data-hidden="small" />
<roundcube:button type="link-menuitem" command="plugin.managesieve-seteditraw" label="managesieve.filterseteditraw" class="edit" classAct="edit active" />
<roundcube:endif />
<roundcube:button type="link-menuitem" command="plugin.managesieve-setact" label="managesieve.filtersetswitch" class="status" classAct="status active" />
<roundcube:button type="link-menuitem" command="plugin.managesieve-setdel" label="managesieve.filtersetdel" class="delete" classAct="delete active" />

@ -2,8 +2,8 @@
<h1 class="voice"><roundcube:label name="managesieve.filterseteditraw" /></h1>
<div class="formcontent">
<roundcube:object name="filterseteditraw" class="propform raweditor" />
<div class="formcontent raweditor">
<roundcube:object name="filterseteditraw" /></form>
</div>
<div class="formbuttons">

Loading…
Cancel
Save