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
15 ■■■■ changed files
interface/web/client/templates/client_edit_limits.htm 8 ●●●● patch | view | raw | blame | history
interface/web/themes/default/templates/main.tpl.htm 7 ●●●● 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,6 +54,7 @@
                tabChangeDiscardTxt = '<tmpl_var name="global_tabchange_discard_txt">';
                
                // Store password in browser; works in Firefox, but not Chrome
                $(document).on('keyup', '#username', function() {
                $('#username').on("blur", function(){
                    if($('#username').val() == '') {
                        return true;
@@ -80,7 +77,7 @@
                    $('#dummy_passwort').val('');
                    $('#passwort').val('');
                });
                });
                $(document).on("change", function(event) {
                    var elName = event.target.localName;