mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Tooltip position fix for textareas.
This commit is contained in:
@@ -273,6 +273,13 @@ $(document).ready(function()
|
|||||||
$("div.tbox,input,textarea,select,label,.e-tip").each(function(c) {
|
$("div.tbox,input,textarea,select,label,.e-tip").each(function(c) {
|
||||||
|
|
||||||
var t = $(this).nextAll(".field-help");
|
var t = $(this).nextAll(".field-help");
|
||||||
|
|
||||||
|
if($(this).is("textarea"))
|
||||||
|
{
|
||||||
|
var placement = 'top';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
t.hide();
|
t.hide();
|
||||||
// alert('hello');
|
// alert('hello');
|
||||||
$(this).tooltip({
|
$(this).tooltip({
|
||||||
@@ -282,7 +289,7 @@ $(document).ready(function()
|
|||||||
},
|
},
|
||||||
fade: true,
|
fade: true,
|
||||||
html: true,
|
html: true,
|
||||||
placement: 'right',
|
placement: placement,
|
||||||
delay: { show: 300, hide: 600 }
|
delay: { show: 300, hide: 600 }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user