1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 20:31:41 +02:00

Media-Manager fixes and refinements

This commit is contained in:
CaMer0n
2012-07-18 06:34:26 +00:00
parent 2b57902e68
commit 1f073d0552
9 changed files with 126 additions and 30 deletions

View File

@@ -1046,6 +1046,7 @@ class e_form
case 'delete':
$image = ADMIN_DELETE_ICON_PATH;
$options['class'] = $options['class'] == 'action' ? 'action delete' : $options['class'];
$options['other'] = 'data-confirm="'.LAN_JSCONFIRM.'"';
break;
case 'execute':
@@ -1080,6 +1081,11 @@ class e_form
$options['class'] = $action;//shorthand
if(empty($label)) $label = $value;
if($action == 'delete')
{
$options['other'] = 'data-confirm="'.LAN_JSCONFIRM.'"';
}
return "
<button type='{$btype}' name='{$name}' value='{$value}'".$this->get_attributes($options, $name)."><span>{$label}</span></button>
";