Commit 029167ad authored by Michael Fürmann's avatar Michael Fürmann
Browse files

Removed management method 'mailaccount' as long as maildomain hook is not implemented

parent e3ba298b
$('document').ready(function(){ $('document').ready(function(){
// Not needed as long as maildomain hook is not implemented
return;
$('#management_method').on('select2-selecting', function(e){ $('#management_method').on('select2-selecting', function(e){
val = e.choice ? e.choice.id : e.target.selectedIndex; val = e.choice ? e.choice.id : e.target.selectedIndex;
if(val == 0){ if(val == 0){
......
...@@ -73,13 +73,16 @@ ...@@ -73,13 +73,16 @@
<!--
management by maildomain is currently not supported
<div class="form-group"> <div class="form-group">
<label for="management_method" class="col-sm-3 control-label">{tmpl_var name='management_method_txt'}</label> <label for="management_method" class="col-sm-3 control-label">{tmpl_var name='management_method_txt'}</label>
<div class="col-sm-9"><select name="management_method" id="management_method" class="form-control"> <div class="col-sm-9"><select name="management_method" id="management_method" class="form-control">
{tmpl_var name='management_method'} {tmpl_var name='management_method'}
</select></div> </select></div>
</div> </div>
-->
<input type="hidden" name="management_method" id="management_method" value="0" />
<div id="toggle-management-normal" class="collapse"> <div id="toggle-management-normal" class="collapse">
<!-- <!--
...@@ -92,7 +95,7 @@ ...@@ -92,7 +95,7 @@
</div--> </div-->
</div> </div>
<input type="hidden" name="public_registration" id="public_registration" value="n" /> <input type="hidden" name="public_registration" id="public_registration" value="n" />
<div id="toggle-registration-closed" class="collapse"> <div id="toggle-registration-closed" class="collapse in">
<div class="form-group"> <div class="form-group">
<label for="registration_url" class="col-sm-3 control-label">{tmpl_var name='registration_url_txt'}</label> <label for="registration_url" class="col-sm-3 control-label">{tmpl_var name='registration_url_txt'}</label>
<div class="col-sm-9"> <div class="col-sm-9">
......
...@@ -264,6 +264,8 @@ class page_action extends tform_actions { ...@@ -264,6 +264,8 @@ class page_action extends tform_actions {
// Read management method // Read management method
if(isset($this->dataRecord["management_method"])) if(isset($this->dataRecord["management_method"]))
// Set management method to 0 as long as the mailaccount hook is not implemented
$this->dataRecord["management_method"] = 0;
switch($this->dataRecord["management_method"]){ switch($this->dataRecord["management_method"]){
case 0: case 0:
$this->dataRecord["management_method"] = 'normal'; $this->dataRecord["management_method"] = 'normal';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment