MDL-30637 Refactor Advanced fileds functionality
authorRuslan Kabalin <r.kabalin@lancaster.ac.uk>
Thu, 24 Jan 2013 14:28:40 +0000 (14:28 +0000)
committerRuslan Kabalin <r.kabalin@lancaster.ac.uk>
Thu, 7 Feb 2013 14:38:37 +0000 (14:38 +0000)
commitac5e6ca4d1c7f33eb72dcc2953feb02db0657090
tree785fa6cff4c25e28b426ddede0c0fc55ee5d1582
parenta4f1834dcaa45257d7ff50d07c11c9b6bd0c17db
MDL-30637 Refactor Advanced fileds functionality

The displaying of advanced items has been refactored. The changes are:

* The Advanced button is replaced by the Show Less/More link
* The Show less/more link controls advanced elements only within the section
  it is located at
* The Show less/more state of sections is preserved between form submissions
* When javascript is off, all advanced elements will be displayed by default,
  no show/hide controls will exists on the page
lang/en/form.php
lib/form/form.js
lib/form/yui/showadvanced/showadvanced.js [new file with mode: 0644]
lib/formslib.php
user/filters/user_filter_forms.php