diff --git a/app/View/Elements/barleft.ctp b/app/View/Elements/barleft.ctp
index c689bd7..57528c1 100755
--- a/app/View/Elements/barleft.ctp
+++ b/app/View/Elements/barleft.ctp
@@ -27,7 +27,7 @@ if($isLoggedin){
- - class="active">=$this->Html->link($this->Html->image('bar-profil.png'),array('controller'=>'user','action'=>'profil'),array('title'=>__('dreamjob.my.profil'),'escape'=>false)); ?>
+ - class="active">=$this->Html->link($this->Html->image('bar-profil.png'),array('controller'=>'user','action'=>'profil'),array('title'=>__('dreamjob.my.profil'), "data-placement"=>"auto right", "data-toggle"=>"tooltip",'escape'=>false)); ?>
- class="active">=$this->Html->link($this->Html->image('bar-job.png'),array('controller'=>'job','action'=>'openingList'),array('title'=>__('dreamjob.my.opening'),'escape'=>false)); ?>
diff --git a/app/webroot/css/dreamjob.css b/app/webroot/css/dreamjob.css
index 9d0ed66..8fe26fb 100755
--- a/app/webroot/css/dreamjob.css
+++ b/app/webroot/css/dreamjob.css
@@ -21,16 +21,6 @@ a:hover{
textarea {
resize: none;
}
-.ui-tooltip {
- background-color:#FCF8E3;
- width:auto;
- display:inline-block;
- color:black;
- border-radius: 2px;
- padding:2px;
- position: absolute;
- z-index: 9999;
-}
/*
* Default
*/
diff --git a/app/webroot/js/dreamjob.js b/app/webroot/js/dreamjob.js
index 8eeb9c2..59f6694 100755
--- a/app/webroot/js/dreamjob.js
+++ b/app/webroot/js/dreamjob.js
@@ -48,7 +48,11 @@ var global_load = null;
$(this).select2({allowClear: true});
});
$(where + ' .dropdown-toggle').dropdown();
- $(where + " a").tooltip({'placement':"right"});
+ $(where + " a").tooltip({'placement':function(e){
+ if($(e).parents("#barleft"))
+ return 'right';
+ return 'auto bottom';
+ }});
$(where + " a").not('[href*="mailto:"]').each(function(that) {
if ($(this).attr("rel") !== "external" && $(this).attr("ref") !== "eventOff" && !$(this).parents('ul').hasClass("wysihtml5-toolbar") && !$(this).hasClass(".select2-choice"))