diff options
Diffstat (limited to 'misc/ahah.js')
-rw-r--r-- | misc/ahah.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/ahah.js b/misc/ahah.js index 92de2df8c..acbd4812f 100644 --- a/misc/ahah.js +++ b/misc/ahah.js @@ -43,6 +43,8 @@ Drupal.ahah = function(base, element_settings) { this.effect = element_settings.effect; this.method = element_settings.method; this.progress = element_settings.progress; + this.button = element_settings.button || { }; + if (this.effect == 'none') { this.showEffect = 'show'; this.hideEffect = 'hide'; @@ -70,6 +72,7 @@ Drupal.ahah = function(base, element_settings) { var ahah = this; var options = { url: ahah.url, + data: ahah.button, beforeSubmit: function(form_values, element_settings, options) { return ahah.beforeSubmit(form_values, element_settings, options); }, |