diff options
author | Michal Čihař <mcihar@suse.cz> | 2011-08-05 16:49:23 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2011-08-05 16:49:23 +0400 |
commit | 1ec0b69e6bf3378188a051b45fb2c0e7ea93b990 (patch) | |
tree | 1bf578071b04275411cdb69c64ce0e54ce10391d /setup | |
parent | 6205d419b68d57105d985a4a5335498337f6ccf4 (diff) |
Coding style, function definitions
Diffstat (limited to 'setup')
-rw-r--r-- | setup/lib/form_processing.lib.php | 3 | ||||
-rw-r--r-- | setup/scripts.js | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/setup/lib/form_processing.lib.php b/setup/lib/form_processing.lib.php index d54fd807c6..10c368c0ef 100644 --- a/setup/lib/form_processing.lib.php +++ b/setup/lib/form_processing.lib.php @@ -11,7 +11,8 @@ * * @param FormDisplay $form_display */ -function process_formset(FormDisplay $form_display) { +function process_formset(FormDisplay $form_display) +{ if (filter_input(INPUT_GET, 'mode') == 'revert') { // revert erroneous fields to their default values $form_display->fixErrors(); diff --git a/setup/scripts.js b/setup/scripts.js index b4e97dc6b3..e39ccacfb9 100644 --- a/setup/scripts.js +++ b/setup/scripts.js @@ -120,7 +120,8 @@ $.extend(true, validators, { * @param {String} id validator id * @param {Object} values values hash {element1_id: value, ...} */ -function ajaxValidate(parent, id, values) { +function ajaxValidate(parent, id, values) +{ parent = $(parent); // ensure that parent is a fieldset if (parent.attr('tagName') != 'FIELDSET') { @@ -192,4 +193,4 @@ $(function() { // // END: User preferences allow/disallow UI -// ------------------------------------------------------------------
\ No newline at end of file +// ------------------------------------------------------------------ |