Commit efb7f224 authored by Pierre Goubeaux's avatar Pierre Goubeaux

manage class on click

parent 643e6293
......@@ -168,7 +168,7 @@ HtmlHelper::registerCssAndScriptsFiles($cssAndScriptFilesModule, $this->module->
<div class="col-md-12 margin-top-15 text-dark menuInvite">
<ul class="nav nav-tabs">
<li role="presentation">
<a href="javascript:" class="" id="menuInviteSomeone">
<a href="javascript:" class="btn-invite-choice" id="menuInviteSomeone">
<div id="titleInviteSomeone" class='radius-10 padding-10 text-yellow text-dark'>
<i class="fa fa-search fa-2x"></i>
<?php echo Yii::t("common","Search"); ?>
......@@ -180,7 +180,7 @@ HtmlHelper::registerCssAndScriptsFiles($cssAndScriptFilesModule, $this->module->
if($parentType != Person::COLLECTION){
?>
<li role="presentation">
<a href="javascript:" class="" id="menuMyContacts">
<a href="javascript:" class="btn-invite-choice" id="menuMyContacts">
<div id="titleWriteMails" class='radius-10 padding-10 text-grey text-dark'>
<i class="fa fa-users fa-2x"></i>
<?php echo Yii::t("invite","My contacts"); ?>
......@@ -191,7 +191,7 @@ HtmlHelper::registerCssAndScriptsFiles($cssAndScriptFilesModule, $this->module->
}
?>
<li role="presentation">
<a href="javascript:" class="" id="menuImportFile">
<a href="javascript:" class="btn-invite-choice" id="menuImportFile">
<div id="titleImportFile" class='radius-10 padding-10 text-grey text-dark'>
<i class="fa fa-pencil fa-2x"></i>
<?php echo Yii::t("invite","Others");
......@@ -343,6 +343,20 @@ HtmlHelper::registerCssAndScriptsFiles($cssAndScriptFilesModule, $this->module->
rolesList = rolesListCustom ;
});
$(".btn-invite-choice").click(function(){
domElement = document.getElementById($(this).children("div").attr("id"));
$(".btn-invite-choice").children("div").removeClass("text-yellow");
$(".btn-invite-choice").children("div").addClass("text-grey");
$.each(domElement.classList , function(k,v){
if (v != "text-yellow") {
domElement.classList.remove("text-grey");
domElement.classList.add("text-yellow");
}
});
});
function fadeInView(inView){
mylog.log("fadeInView", inView);
......
Markdown is supported
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