Commit d2fddb47 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#201017 by chx: AHAH callbacks were not working for regular buttons

parent d3c14ad6
......@@ -1746,7 +1746,7 @@ function form_expand_ahah($element) {
'effect' => empty($element['#ahah']['effect']) ? 'none' : $element['#ahah']['effect'],
'method' => empty($element['#ahah']['method']) ? 'replace' : $element['#ahah']['method'],
'progress' => empty($element['#ahah']['progress']) ? array('type' => 'throbber') : $element['#ahah']['progress'],
'button' => $element['#type'] == 'submit' ? array($element['#name'] => $element['#value']) : FALSE,
'button' => isset($element['#executes_submit_callback']) ? array($element['#name'] => $element['#value']) : FALSE,
);
// Convert a simple #ahah[progress] type string into an array.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment