<commit_before>// JavaScript Document

/*=========================================
||
|| JS File for the Admin View
|| Date: 01/03/2013
|| Version: 0.0.0.1 
|| 
||=========================================*/

var S36FullpageAdmin = function(layoutObj){
    /* ========================================
    || Function needed to run by document ready
    ==========================================*/
    var self = this;
    var common = new S36FullpageCommon;
    var robertmordido = function(){
            alert('hi robskie');
    }
    this.init_fullpage_admin = function(){
        
        // initialize the the PanelAutoSaver.
        // layoutObj is used as param because we use S36FullpageAdmin.show_notification() 
        // inside PanelAutoSaver.
        PanelAutoSaver.init(layoutObj);
        
        // editing of panel description.
        $('#panel_desc_container').jScrollPane();
        $('.companyDescription').click(function(){
            $('#panel_desc_container').hide();
            $('#panel_desc_textbox').show().focus();
            $('#panel_desc_textbox').val( Helpers.entities2html( Helpers.br2nl($(this).html().replace(/\n/g,'')) ) );
        });
        
        $('#panel_desc_textbox').blur(function(){
            $(this).hide();
            $('#panel_desc_container').fadeIn();
            $('.companyDescription').html( Helpers.nl2br( Helpers.html2entities($(this).val()) ) );
            $('#panel_desc_container').jScrollPane();
            $('#fullpage_desc').html( Helpers.nl2br( Helpers.html2entities($(this).val()) ) );<commit_msg>removed test function<commit_after>// JavaScript Document

/*=========================================
||
|| JS File for the Admin View
|| Date: 01/03/2013
|| Version: 0.0.0.1 
|| 
||=========================================*/

var S36FullpageAdmin = function(layoutObj){
    /* ========================================
    || Function needed to run by document ready
    ==========================================*/
    var self = this;
    var common = new S36FullpageCommon;
    
    this.init_fullpage_admin = function(){
        
        // initialize the the PanelAutoSaver.
        // layoutObj is used as param because we use S36FullpageAdmin.show_notification() 
        // inside PanelAutoSaver.
        PanelAutoSaver.init(layoutObj);
        
        // editing of panel description.
        $('#panel_desc_container').jScrollPane();
        $('.companyDescription').click(function(){
            $('#panel_desc_container').hide();
            $('#panel_desc_textbox').show().focus();
            $('#panel_desc_textbox').val( Helpers.entities2html( Helpers.br2nl($(this).html().replace(/\n/g,'')) ) );
        });
        
        $('#panel_desc_textbox').blur(function(){
            $(this).hide();
            $('#panel_desc_container').fadeIn();
            $('.companyDescription').html( Helpers.nl2br( Helpers.html2entities($(this).val()) ) );
            $('#panel_desc_container').jScrollPane();
            $('#fullpage_desc').html( Helpers.nl2br( Helpers.html2entities($(this).val()) ) );
{'fraction_non_alphanumeric': 0.25551232166018156, 'fraction_numerical': 0.01556420233463035, 'mean_word_length': 2.9806451612903224, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1450138', 'n_tokens_mistral': 848, 'n_tokens_neox': 830, 'n_words': 145}