Commit ee38ba9b authored by Raph El's avatar Raph El
Browse files

Modif

parent 559ebaab
......@@ -44,7 +44,8 @@ var settings = {
if(hidden) $('.btn-group-'+field+' > button[value="hide"]').addClass('active');
});
$.each(typePreferencesBool, function(field, typePrefB){
if(notNull(preferences) && typeof preferences[typePrefB] != "undefined" && preferences[typePrefB] == true)
mylog.log("pref ", field, typePrefB, preferences)
if(notNull(preferences) && typeof preferences[typePrefB] != "undefined" && ( preferences[typePrefB] == true || preferences[typePrefB] == "true") )
$('.btn-group-'+typePrefB+' > button[value="true"]').addClass('active');
else
$('.btn-group-'+typePrefB+' > button[value="false"]').addClass('active');
......
......@@ -292,9 +292,10 @@ HtmlHelper::registerCssAndScriptsFiles($cssJs, Yii::app()->getRequest()->getBase
if($parentType == Form::COLLECTION){
?>
<a href="<?php echo Yii::app()->getRequest()->getBaseUrl(true) ?>/survey/co/members/id/<?php echo $id; ?>/session/<?php echo $_GET["session"]; ?>" class="btn btn-success margin-top-20 col-xs-12 " id="btn-home" style="font-size:20px;"><i class="fa fa-home"></i> <?php echo Yii::t("invite","See the community") ?></a>
<?php } else /*if($parentType != Person::COLLECTION) */ {?>
<?php } else if($parentType == Proposal::COLLECTION){?>
<button class="btn btn-success margin-top-20 col-xs-12" data-dismiss="modal"><i class="fa fa-users" ></i> <?php echo Yii::t("invite","Close invite") ?></button>
<?php } else /*if($parentType != Person::COLLECTION) */ {?>
<button class="btn btn-success margin-top-20 col-xs-12 link-to-community"><i class="fa fa-users"></i> <?php echo Yii::t("invite","See the community") ?></button>
<?php } ?>
</div>
......@@ -355,6 +356,7 @@ HtmlHelper::registerCssAndScriptsFiles($cssJs, Yii::app()->getRequest()->getBase
$("#modal-invite #divResult").show();
$("#modal-invite #dropdown-result").show();
}
} else {
toastr.error(tradDynForm.pleaseValidateTheCurrentInvites);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment