mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 12:21:45 +02:00
Default loading icon added to form->button() method when font-awesome is present.
This commit is contained in:
@@ -2511,9 +2511,12 @@ class e_form
|
||||
$options['class'] .= 'btn-default';
|
||||
break;
|
||||
}
|
||||
|
||||
$include = (deftrue("FONTAWESOME")) ? "data-loading-icon='fa-spinner' data-disable='true'" : "";
|
||||
|
||||
|
||||
return "
|
||||
<button type='{$btype}' name='{$name}' value='{$value}'".$this->get_attributes($options, $name)."><span>{$label}</span></button>
|
||||
<button ".$include." type='{$btype}' name='{$name}' value='{$value}'".$this->get_attributes($options, $name)."><span>{$label}</span></button>
|
||||
";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user