1: <?php
2: /**
3: * Horde_Form_Action_submit is a Horde_Form Action that submits the
4: * form after the form element that the action is attached to is
5: * modified.
6: *
7: * Copyright 2002-2012 Horde LLC (http://www.horde.org/)
8: *
9: * See the enclosed file COPYING for license information (LGPL). If you
10: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
11: *
12: * @author Chuck Hagenbuch <chuck@horde.org>
13: * @package Form
14: */
15: class Horde_Form_Action_submit extends Horde_Form_Action {
16:
17: var $_trigger = array('onchange');
18:
19: function getActionScript($form, $renderer, $varname)
20: {
21: Horde::addScriptFile('effects.js', 'horde');
22: Horde::addScriptFile('redbox.js', 'horde');
23: return 'RedBox.loading(); document.' . $form->getName() . '.submit()';
24: }
25:
26: }
27: