<commit_before><div class="panel panel-white">
  <div class="panel-heading border-light">
    <h4 class="panel-title">QUI SOMMES NOUS ? </h4>
    <div class="panel-tools">
      <div class="dropdown">
        <a data-toggle="dropdown" class="btn btn-xs dropdown-toggle btn-transparent-grey">
          <i class="fa fa-cog"></i>
        </a>
        <ul class="dropdown-menu dropdown-light pull-right" role="menu">
          <li>
            <a class="panel-collapse collapses" href="#"><i class="fa fa-angle-up"></i> <span>Collapse</span> </a>
          </li>
          
          <li>
            <a class="panel-refresh" href="#">
              <i class="fa fa-refresh"></i> <span>Refresh</span>
            </a>
          </li>
		  <?php if( Authorisation::isOrganizationAdmin(Yii::app()->session['userId'], $organization["_id"]) ){ ?>
          <li>
            <a href="#ajaxSV" id="aboutConfig">
              <i class="fa fa-wrench"></i> <span>Configurations</span>
            </a>
          </li>
          <?php } ?>
          <li>
            <a class="panel-expand" href="#">
              <i class="fa fa-expand"></i> <span>Fullscreen</span>
            </a>
          </li>
        </ul>
      </div>
      <a class="btn btn-xs btn-link panel-close" href="#">
        <i class="fa fa-times"></i>
      </a>
    </div>
  </div>
  <div class="panel-body no-padding center orgaDescription">
    <?php echo $organization["description"] ?>
  </div>
</div>

<script type="text/javascript">

var formDefinition = {
    "jsonSchema" : {
        "title" : "About Pod Form",
        "type" : "object",
        "properties" : {
            "description" :{
            	"inputType" : "textarea",
            	"placeholder" : "Describe your Organization"
            }
        }
    },
    "collection" : "organization",
    "key" : "ajaxForm",
    //"savePath":moduleId+""
};

var dataBind = {
	"#description": {
		"value" : "<?php echo $organization["description"] ?>",
		"saveTo":"description",
		"updateElement" : ".orgaDescription"
	},
};

jQuery(document).ready(function() {
	
	$("#aboutConfig").off().on("click",function() { 
		$("#ajaxSV").html("<div class='col-sm-8 col-sm-offset-2'>"+
							"<div class='space20'></div>"+
							"<h1>Edit About Information</h1>"+
							"<form id='ajaxForm'></form>"+
						  "</div>");
		$.subview({
			content : "#ajaxSV",
			onShow : function() 
			{
				console.log("build Form about");
				var form = $.dynForm({
					formId : "#ajaxForm",
					formObj : formDefinition,
					onLoad : function  () {
						/*
						here you can load anythnig into your form fields 
						it is called after creation
						*/
						$.each(dataBind,function(field,fieldObj){
							if(field != ""){
								var val = jsonHelper.getValueByPath( dataBind, fieldObj.saveTo );
								if(val){
									$(field).val(val);<commit_msg>Fix the description loading of the organization<commit_after><div class="panel panel-white">
  <div class="panel-heading border-light">
    <h4 class="panel-title">QUI SOMMES NOUS ? </h4>
    <div class="panel-tools">
      <div class="dropdown">
        <a data-toggle="dropdown" class="btn btn-xs dropdown-toggle btn-transparent-grey">
          <i class="fa fa-cog"></i>
        </a>
        <ul class="dropdown-menu dropdown-light pull-right" role="menu">
          <li>
            <a class="panel-collapse collapses" href="#"><i class="fa fa-angle-up"></i> <span>Collapse</span> </a>
          </li>
          
          <li>
            <a class="panel-refresh" href="#">
              <i class="fa fa-refresh"></i> <span>Refresh</span>
            </a>
          </li>
		  <?php if( Authorisation::isOrganizationAdmin(Yii::app()->session['userId'], $organization["_id"]) ){ ?>
          <li>
            <a href="#ajaxSV" id="aboutConfig">
              <i class="fa fa-wrench"></i> <span>Configurations</span>
            </a>
          </li>
          <?php } ?>
          <li>
            <a class="panel-expand" href="#">
              <i class="fa fa-expand"></i> <span>Fullscreen</span>
            </a>
          </li>
        </ul>
      </div>
      <a class="btn btn-xs btn-link panel-close" href="#">
        <i class="fa fa-times"></i>
      </a>
    </div>
  </div>
  <div class="panel-body no-padding center orgaDescription">
    <?php echo $organization["description"] ?>
  </div>
</div>

<script type="text/javascript">

var formDefinition = {
    "jsonSchema" : {
        "title" : "About Pod Form",
        "type" : "object",
        "properties" : {
            "description" :{
            	"inputType" : "textarea",
            	"placeholder" : "Describe your Organization"
            }
        }
    },
    "collection" : "organization",
    "key" : "ajaxForm",
    //"savePath":moduleId+""
};

var dataBind = {
	"#description": {
		"value" : "<?php echo $organization["description"] ?>",
		"saveTo":"description",
		"updateElement" : ".orgaDescription"
	},
};

jQuery(document).ready(function() {
	
	$("#aboutConfig").off().on("click",function() { 
		$("#ajaxSV").html("<div class='col-sm-8 col-sm-offset-2'>"+
							"<div class='space20'></div>"+
							"<h1>Edit About Information</h1>"+
							"<form id='ajaxForm'></form>"+
						  "</div>");
		$.subview({
			content : "#ajaxSV",
			onShow : function() 
			{
				console.log("build Form about");
				var form = $.dynForm({
					formId : "#ajaxForm",
					formObj : formDefinition,
					onLoad : function  () {
						/*
						here you can load anythnig into your form fields 
						it is called after creation
						*/
						$.each(dataBind,function(field,fieldObj){
							if(field != ""){
								var val = fieldObj.value;
								if(val) {
									$(field).val(val);
{'fraction_non_alphanumeric': 0.19199160692428746, 'fraction_numerical': 0.002797691904179052, 'mean_word_length': 2.19910514541387, 'pattern_counts': {'":': 6, '<': 137, '<?xml version=': 0, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '7044350', 'n_tokens_mistral': 2045, 'n_tokens_neox': 1802, 'n_words': 375}