function page_load_progress_preprocess_input in Page Load Progress 8
Implements template_preprocess_input().
File
- ./
page_load_progress.module, line 81 - Allows to attach page_load_progress assets to all pages.
Code
function page_load_progress_preprocess_input(&$variables) {
$element = $variables['element'];
// Don't trigger the throbber on Ajax-based forms since this causes various
// issues. E.g. with modal windows.
if ($element['#type'] == 'submit' && !isset($element['#ajax'])) {
$variables['attributes']['class'][] = 'page-load-progress-submit';
}
}