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

@ -63,7 +63,7 @@
<ul class="toolbarmenu listing" id="filtersetmenu-menu" role="menu" aria-labelledby="aria-label-setactions"> <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: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: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: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-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" /> <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> <h1 class="voice"><roundcube:label name="managesieve.filterseteditraw" /></h1>
<div class="formcontent"> <div class="formcontent raweditor">
<roundcube:object name="filterseteditraw" class="propform raweditor" /> <roundcube:object name="filterseteditraw" /></form>
</div> </div>
<div class="formbuttons"> <div class="formbuttons">

Loading…
Cancel
Save