ochorocho
2014-10-12 45bc378b77aa6dddc7f157eb812b87c93fe23299
add changes to fire JS event again, add JS to enable toggle on client_edit_limits again
2 files modified
55 ■■■■ changed files
interface/web/client/templates/client_edit_limits.htm 8 ●●●● patch | view | raw | blame | history
interface/web/themes/default/templates/main.tpl.htm 47 ●●●● patch | view | raw | blame | history
interface/web/client/templates/client_edit_limits.htm
@@ -326,12 +326,16 @@
    return ($('#template_master').val() == '0' ? true : false);
}
jQuery('#template_additional_list').find('li > a').click(function(e) {
$('.subsectiontoggle').on("click", function(){
    $(this).children().toggleClass('showing').end().next().slideToggle();
});
$('#template_additional_list').find('li > a').click(function(e) {
    e.preventDefault();
    delAdditionalTemplate($(this).parent().attr('rel'));
});
jQuery('div.panel_client')
$('div.panel_client')
        .find('div.pnl_formsarea')
        .find('fieldset')
        .find('input,select,button')
interface/web/themes/default/templates/main.tpl.htm
@@ -38,10 +38,6 @@
                    }
                });
                
                $('.subsectiontoggle').on("click", function(){
                    $(this).children().toggleClass('showing').end().next().slideToggle();
                });
                $('#globalsearch').ispconfigSearch({
                    dataSrc: '/dashboard/ajax_get_json.php?type=globalsearch',
                    resultsLimit: '$ <tmpl_var name="globalsearch_resultslimit_of_txt"> % <tmpl_var name="globalsearch_resultslimit_results_txt">',
@@ -58,29 +54,30 @@
                tabChangeDiscardTxt = '<tmpl_var name="global_tabchange_discard_txt">';
                
                // Store password in browser; works in Firefox, but not Chrome
                $('#username').on("blur", function(){
                    if($('#username').val() == '') {
                        return true;
                    }
                    if($('#dummy_username').val() == '' || $('#dummy_username').val() != $(this).val()){
                        $('#dummy_login').show();
                        $('#dummy_username').attr('value', $(this).val()).trigger('focus').trigger('blur');
                        $('#dummy_login').hide();
                    }
                    if($('#dummy_username').val() == $(this).val() && $(this).val() != ''){
                        $('#passwort').val($('#dummy_passwort').val());
                    } else {
                $(document).on('keyup', '#username', function() {
                    $('#username').on("blur", function(){
                        if($('#username').val() == '') {
                            return true;
                        }
                        if($('#dummy_username').val() == '' || $('#dummy_username').val() != $(this).val()){
                            $('#dummy_login').show();
                            $('#dummy_username').attr('value', $(this).val()).trigger('focus').trigger('blur');
                            $('#dummy_login').hide();
                        }
                        if($('#dummy_username').val() == $(this).val() && $(this).val() != ''){
                            $('#passwort').val($('#dummy_passwort').val());
                        } else {
                            $('#passwort').val('');
                        }
                        $('#passwort').focus();
                    });
                    $('#username').on("keyup", function(){
                        $('#dummy_username').val('');
                        $('#dummy_passwort').val('');
                        $('#passwort').val('');
                    }
                    $('#passwort').focus();
                    });
                });
                $('#username').on("keyup", function(){
                    $('#dummy_username').val('');
                    $('#dummy_passwort').val('');
                    $('#passwort').val('');
                });
                $(document).on("change", function(event) {
                    var elName = event.target.localName;