mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Fix for issue #2741
This commit is contained in:
@@ -1026,7 +1026,7 @@ class e_form
|
|||||||
if($localonly == true)
|
if($localonly == true)
|
||||||
{
|
{
|
||||||
$text = "<input class='tbox' style='width:80%' id='{$idinput}' type='hidden' name='image' value='{$curVal}' />";
|
$text = "<input class='tbox' style='width:80%' id='{$idinput}' type='hidden' name='image' value='{$curVal}' />";
|
||||||
$text .= "<img src='".$img."' id='{$previnput}' class='img-rounded rounded e-expandit e-tip avatar' style='cursor:pointer; width:".$pref['im_width']."px; height:".$pref['im_height']."px' title='".LAN_EFORM_001."' alt='Click on the avatar to change it' />";
|
$text .= "<img src='".$img."' id='{$previnput}' class='img-rounded rounded e-expandit e-tip avatar' style='cursor:pointer; width:".$pref['im_width']."px; height:".$pref['im_height']."px' title='".LAN_EFORM_001."' alt='".LAN_EFORM_001."' />";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -207,6 +207,8 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
{
|
{
|
||||||
$(context).find('.e-expandit').once('e-expandit').each(function ()
|
$(context).find('.e-expandit').once('e-expandit').each(function ()
|
||||||
{
|
{
|
||||||
|
$(this).show();
|
||||||
|
|
||||||
// default 'toggle'.
|
// default 'toggle'.
|
||||||
$(this).click(function ()
|
$(this).click(function ()
|
||||||
{
|
{
|
||||||
@@ -254,8 +256,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
|
|
||||||
if(href === "#" || href == "")
|
if(href === "#" || href == "")
|
||||||
{
|
{
|
||||||
var idt = $(this).nextAll("div");
|
$(this).nextAll("div").slideToggle("slow");
|
||||||
$(idt).slideToggle("slow");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -330,21 +331,6 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Behavior to show elements.
|
|
||||||
*
|
|
||||||
* @type {{attach: e107.behaviors.eExpandIt.attach}}
|
|
||||||
*/
|
|
||||||
e107.behaviors.eExpandIt = {
|
|
||||||
attach: function (context, settings)
|
|
||||||
{
|
|
||||||
$(context).find('.e-expandit').once('e-expand-it').each(function ()
|
|
||||||
{
|
|
||||||
$(this).show();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the selector is valid.
|
* Check if the selector is valid.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user