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

Merge branch 'master' into development

parents bed80d12 7c8e4547
......@@ -60,6 +60,15 @@ function responsiveMenuLeft(menuTop){
}
}
function bindButtonMenu(){
$("#paramsMenu").click(function(){
$(".dropdown-profil-menu-params").addClass("open");
});
$(".dropdown-profil-menu-params .dropdown-menu").mouseleave(function(){ //alert("dropdown-user mouseleave");
setTimeout(function(){
//if(!$(".dropdown-profil-menu-params").is(":hover"))
$(".dropdown-profil-menu-params").removeClass("open");
}, 200);
});
$("#btn-superadmin").click(function(){
loadAdminDashboard();
});
......
......@@ -299,9 +299,9 @@ $this->renderPartial( $layoutPath.'modals.'.Yii::app()->params["CO2DomainName"].
if( Yii::app()->params['rocketchatMultiEnabled'] && $type != Person::COLLECTION )
{
?>
<div class="btn-group " id="paramsMenu">
<div class="btn-group " id="">
<ul class="nav navbar-nav">
<li class="dropdown">
<li class="dropdown dropdown-profil-menu-params">
<button type="button" class="btn btn-default bold">
<?php if(@Yii::app()->session["userId"] && $edit==true){ ?>
<i class="fa fa-comments"></i> <span class="hidden-xs hidden-sm"><?php echo Yii::t("cooperation", "Chat"); ?>
......@@ -310,7 +310,7 @@ $this->renderPartial( $layoutPath.'modals.'.Yii::app()->params["CO2DomainName"].
<?php } ?>
</span>
</button>
<ul class="dropdown-menu arrow_box menu-params">
<ul class="dropdown-menu arrow_box menu-params dropdown-profil-menu-params">
<?php
if( $hasRC && @$element["tools"]["chat"] )
......@@ -455,8 +455,8 @@ $this->renderPartial( $layoutPath.'modals.'.Yii::app()->params["CO2DomainName"].
<i class="fa fa-grav letter-red"></i> <span class="hidden-xs hidden-sm hidden-md"></span>
</button>
<?php } ?>
<ul class="nav navbar-nav" id="paramsMenu">
<li class="dropdown">
<ul class="nav navbar-nav" id="paramsMenu">
<li class="dropdown dropdown-profil-menu-params">
<button type="button" class="btn btn-default bold">
<?php if(@Yii::app()->session["userId"] && $edit==true){ ?>
<i class="fa fa-cogs"></i> <span class="hidden-xs hidden-sm"><?php echo Yii::t("common", "Settings"); ?>
......
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