mcramer
2012-12-14 20c7b5f689588e32a46fb8a8150c98077fb7985e
Implemented:  FS#2237 - Limits not within customer template 

3 files modified
27 ■■■■■ changed files
interface/web/client/lib/lang/de_client.lng 1 ●●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_client.lng 1 ●●●● patch | view | raw | blame | history
interface/web/client/templates/client_edit_limits.htm 25 ●●●●● patch | view | raw | blame | history
interface/web/client/lib/lang/de_client.lng
@@ -139,4 +139,5 @@
$wb['email_error_isemail'] = 'Bitte geben Sie eine gültige Email-Adresse an.';
$wb['paypal_email_error_isemail'] = 'Bitte geben Sie eine gültige PayPal-E-Mail-Adresse an.';
$wb['paypal_email_txt'] = 'PayPal-E-Mail';
$wb['err_msg_master_tpl_set'] = 'Die hier eingestellten Werte werden ignoriert, wenn als Mastervorlage nicht "Custom" gewählt ist.';
?>
interface/web/client/lib/lang/en_client.lng
@@ -142,4 +142,5 @@
$wb["customer_no_error_unique"] = 'The customer no. must be unique (or empty).';
$wb['paypal_email_error_isemail'] = 'Please enter a valid PayPal email address.';
$wb['paypal_email_txt'] = 'PayPal Email';
$wb['err_msg_master_tpl_set'] = 'All custom limit settings are ignored if any master template other than "custom" is selected.';
?>
interface/web/client/templates/client_edit_limits.htm
@@ -288,4 +288,27 @@
        </div>
    </div>
</div>
</div>
<script type="text/javascript">
<!--
function custom_template_selected() {
    return ($('#template_master').val() == '0' ? true : false);
}
jQuery('div.panel_client')
        .find('div.pnl_formsarea')
        .find('fieldset')
        .find('input,select,button')
        .not('#template_master,#template_additional')
        .click(function(e) {
            if(custom_template_selected()) return true;
            e.preventDefault();
            alert('{tmpl_var name="err_msg_master_tpl_set"}');
        })
        .focus(function() {
            if(custom_template_selected()) return true;
            $(this).blur();
        });
//-->
</script>