1
0
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:
Cameron
2016-04-10 17:52:30 -07:00
parent 12a6367fdf
commit 8ff02d9aa9
4 changed files with 133 additions and 102 deletions

View File

@@ -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>
";
}