/usr/share/php/Horde/Form/Action/reload.php is in php-horde-form 2.0.12-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | <?php
/**
* Horde_Form_Action_reload is a Horde_Form Action that reloads the
* form with the current (not the original) value after the form element
* that the action is attached to is modified.
*
* Copyright 2003-2016 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @author Jan Schneider <jan@horde.org>
* @package Form
*/
class Horde_Form_Action_reload extends Horde_Form_Action {
var $_trigger = array('onchange');
function getActionScript($form, $renderer, $varname)
{
$page_output = $GLOBALS['injector']->getInstance('Horde_PageOutput');
$page_output->addScriptFile('scriptaculous/effects.js', 'horde');
$page_output->addScriptFile('redbox.js', 'horde');
return 'if (this.value) { document.' . $form->getName() . '.formname.value=\'\'; RedBox.loading(); document.' . $form->getName() . '.submit() }';
}
}
|