Skip to content

Commit 1d3bd67

Browse files
author
Till Brehm
committed
Fixed #4289 ISPConfig shows a warning when an additional template is added to a client
1 parent 21ee812 commit 1d3bd67

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

interface/web/client/templates/client_edit_limits.htm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
2222
</select></div>
2323
</div>
2424
<div class="clear"><div class="right">
25-
<button class="btn btn-default formbutton-success" type="button" onclick="ISPConfig.addAdditionalTemplate();">{tmpl_var name="add_additional_template_txt"}</button>
25+
<button id="tpl_add_btn" class="btn btn-default formbutton-success" type="button" onclick="ISPConfig.addAdditionalTemplate();">{tmpl_var name="add_additional_template_txt"}</button>
2626
</div></div>
2727
<div class="form-group">
2828
<label class="col-sm-3 control-label">{tmpl_var name='active_template_additional_txt'}</label>
@@ -471,9 +471,9 @@ <h4 class="panel-title">
471471
.find('div.pnl_formsarea')
472472
.find('fieldset')
473473
.find('input,select,button')
474-
.not('#template_master,#template_additional,#default_mailserver,#default_webserver,#default_dbserver,#default_dnsserver,#default_slave_dnsserver,#customer_no_template,#customer_no_start,#customer_no_counter,#parent_client_id,#reseller')
474+
.not('#template_master,#template_additional,#default_mailserver,#tpl_add_btn,#default_webserver,#default_dbserver,#default_dnsserver,#default_slave_dnsserver,#customer_no_template,#customer_no_start,#customer_no_counter,#parent_client_id,#reseller')
475475
.click(function(e) {
476-
if(custom_template_selected()) return true;
476+
if(custom_template_selected()) return true;
477477
e.preventDefault();
478478
alert('{tmpl_var name="err_msg_master_tpl_set"}');
479479
})

interface/web/themes/default/assets/javascripts/ispconfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ var ISPConfig = {
544544
newVal[newVal.length] = 'n' + ISPConfig.new_tpl_add_id + ':' + addTplId;
545545
$('<li>' + addTplText + '</li>').attr('rel', 'n' + ISPConfig.new_tpl_add_id).append(delbtn).appendTo('#template_additional_list ul');
546546
$('#template_additional').val(newVal.join('/'));
547-
alert('additional template ' + addTplText + ' added to customer');
547+
//alert('additional template ' + addTplText + ' added to customer');
548548
} else {
549549
alert('no additional template selcted');
550550
}
@@ -566,7 +566,7 @@ var ISPConfig = {
566566
newVal[newVal.length] = oldVal[i];
567567
}
568568
$('#template_additional').val(newVal.join('/'));
569-
alert('additional template ' + addTplText + ' deleted from customer');
569+
//alert('additional template ' + addTplText + ' deleted from customer');
570570
} else if(tpl_add != '') {
571571
// old style
572572
var addTemplate = document.getElementById('tpl_add_select').value.split('|',2);
@@ -587,7 +587,7 @@ var ISPConfig = {
587587
newVal = newVal.replace(repl, '');
588588
newVal = newVal.replace('//', '/');
589589
$('#template_additional').val(newVal);
590-
alert('additional template ' + addTplText + ' deleted from customer');
590+
//alert('additional template ' + addTplText + ' deleted from customer');
591591
} else {
592592
alert('no additional template selcted');
593593
}

0 commit comments

Comments
 (0)