mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Admin-UI: fix for boolean inline editing style. Disabled link-image replacement while in the admin area.
This commit is contained in:
@@ -1618,7 +1618,7 @@ class e_parse extends e_parser
|
|||||||
// Convert URL's to clickable links, unless modifiers or prefs override
|
// Convert URL's to clickable links, unless modifiers or prefs override
|
||||||
if ($opts['link_click'])
|
if ($opts['link_click'])
|
||||||
{
|
{
|
||||||
if ($opts['link_replace'])
|
if ($opts['link_replace'] && ADMIN_AREA !== true)
|
||||||
{
|
{
|
||||||
$_ext = ($pref['links_new_window'] ? " rel=\"external\"" : "");
|
$_ext = ($pref['links_new_window'] ? " rel=\"external\"" : "");
|
||||||
$link_text = $pref['link_text'];
|
$link_text = $pref['link_text'];
|
||||||
|
@@ -3293,8 +3293,12 @@ class e_form
|
|||||||
|
|
||||||
if(!vartrue($attributes['noedit']) && vartrue($parms['editable']) && !vartrue($parms['link'])) // avoid bad markup, better solution coming up
|
if(!vartrue($attributes['noedit']) && vartrue($parms['editable']) && !vartrue($parms['link'])) // avoid bad markup, better solution coming up
|
||||||
{
|
{
|
||||||
$false = vartrue($parms['trueonly']) ? "-" : "False";
|
|
||||||
$wparms = (vartrue($parms['reverse'])) ? array(0=>'True', 1=>$false) : array(0=>$false, 1=>'True'); //TODO LAN
|
$false = ($value === '') ? "□" : "✗";
|
||||||
|
|
||||||
|
$value = intval($value);
|
||||||
|
|
||||||
|
$wparms = (vartrue($parms['reverse'])) ? array(0=>'✓', 1=>$false) : array(0=>$false, 1=>'✓'); //TODO LAN
|
||||||
$dispValue = $wparms[$value];
|
$dispValue = $wparms[$value];
|
||||||
|
|
||||||
return $this->renderInline($field, $id, $attributes['title'], $value, $dispValue, 'select', $wparms);
|
return $this->renderInline($field, $id, $attributes['title'], $value, $dispValue, 'select', $wparms);
|
||||||
|
Reference in New Issue
Block a user