summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-02 15:18:15 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-02 15:18:15 +0000
commitd2fddb47632e167d350395dbe20190d887afe388 (patch)
tree7af9394f08ae7700b004e3cbdbc066c4047aa534
parentd3c14ad6fefc670709b16cb2efdb165b8aa45a3c (diff)
downloadbrdo-d2fddb47632e167d350395dbe20190d887afe388.tar.gz
brdo-d2fddb47632e167d350395dbe20190d887afe388.tar.bz2
#201017 by chx: AHAH callbacks were not working for regular buttons
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 5ff0193fe..f7fdda438 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -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.