Active
Project:
Ajax
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2009 at 16:32 UTC
Updated:
24 Jun 2009 at 16:32 UTC
I want to create a confirmation that's not limited to the message in JS.
I'm not sure I understand everything that I read in the docs.
so I create a module:
function ajax_saveconfirm_story_submit(&$form, &$form_state) {
// What do I put here?
}
With some JS:
Drupal.Ajax.plugins.ajax_saveconfirm = function(hook, args) {
if (hook === 'message') {
alert("save success!");
}
}
Like this would work?
Thanks!