64 Commits

Author SHA1 Message Date
Andrew Nicols
557f44d970 MDL-48620 JavaScript: Updated shifted files to comply with coding style 2015-01-23 14:51:24 +08:00
Andrew Nicols
64e7aa4de1 MDL-28286 JavaScript: Convert all uses of M.str to M.util.get_string 2014-12-01 08:32:04 +13:00
Frederic Massart
74d0ca1543 MDL-47739 form: Calendar widget causes unintentional focus and scroll 2014-10-20 10:55:49 +08:00
Jerome Mouneyrac
5cba1029ca MDL-32917 port YUI2 Moodle calendar into a shifted YUI3 Calendar 2014-06-23 13:50:47 +08:00
Damyon Wiese
052b8c81c6 Revert "MDL-32917 YUI2 to YUI3 Calendar port: only display the date from the matching selector and display the month/year matching the selector value"
There are numerous bugs with this new module to do with showing the currently selected date,
random changes in the selected dates, showing multiple selected dates and css errors.

This reverts commit 1d128663f69be8b60fc28b6b7732acd24d800a98.
This reverts commit 4a521e6596918279fd0cdeb47d06e7906bc004cc.
2014-03-06 13:38:17 +08:00
Jerome Mouneyrac
1d128663f6 MDL-32917 YUI2 to YUI3 Calendar port: only display the date from the matching selector and display the month/year matching the selector value 2014-03-06 11:35:00 +08:00
Jerome Mouneyrac
4a521e6596 MDL-32917 port YUI2 Moodle calendar into a shifted YUI3 Calendar 2014-02-28 15:05:43 +08:00
Andrew Nicols
d4e438718e MDL-43969 Forms: Adjust ARIA attributes for short forms
The aria-live="polite" attribute is incorrectly added to the fieldset,
causing the entire fieldset to be read out on change in some browsers. This
is unnecessary.
It also does not announce the current state of the fieldset (collaped or
open) and should.
2014-02-07 16:17:13 +08:00
Damyon Wiese
f27e462b5f Merge branch 'MDL-43302-master' of git://github.com/andrewnicols/moodle 2014-01-14 14:23:06 +08:00
Andrew Nicols
b5154feacc MDL-40119 Forms: Remove cursor style override for calendar button 2014-01-08 11:13:37 +01:00
Andrew Nicols
83e9f0ad71 MDL-40119 Forms: Date selector should use images for the calendar popup toggle
The calendar popup toggle must use an image, rather than an input with type
of image as the latter is actually a form of submit button, and hence it
steals the focus away from the real submit button.
2013-12-30 15:53:42 +08:00
Andrew Nicols
bd5b681a89 MDL-43302 JavaScript: Migrate moodle-form-passwordunmask to use Shifter 2013-12-23 16:40:28 +08:00
Sam Hemelryk
1092f63a80 Merge branch 'MDL-38775-master' of git://github.com/andrewnicols/moodle 2013-12-11 12:25:16 +13:00
Andrew Nicols
81cb52bb9a MDL-38776 JavaScript: Migrate moodle-form-showadvanced to Shifter 2013-12-04 22:51:26 +08:00
Andrew Nicols
5e4ef61c00 MDL-38775 JavaScript: Migrate moodle-form-shortforms to Shifter 2013-12-04 22:24:32 +08:00
Adam Olley
eed17976dc MDL-42587: calendar: Fix regression that stops dates autocorrecting 2013-10-29 14:19:08 +10:30
Rajesh Taneja
75fd791d87 MDL-39639 Formslib: Hide calendar for datetime element on disable event 2013-05-14 11:59:05 +08:00
Mark Nelson
edc4670b4c MDL-39581 forms: prevent calendar popup from changing multiple date elements 2013-05-10 11:22:07 +08:00
Eloy Lafuente (stronk7)
4ce97aed0d Merge branch 'wip-mdl-39332' of git://github.com/rajeshtaneja/moodle 2013-05-08 00:28:15 +02:00
Mark Nelson
34f9862edf MDL-39187 forms: fixed issue where calendar pop-up did not display when a date selector form element was added to a group 2013-05-03 13:01:58 +08:00
Rajesh Taneja
5e0ab6704a MDL-39332 Formslib: remove z-index from calendar panel
calendar panel.render() sets zIndex to 0, when calendar is used next to filepicker, it overlaps
zIndex should be set by css and not JS, and previously used removeAttr on panel breaks JS on ie8.
So solution is to render panel and then remove z-index from dom
2013-05-03 10:59:46 +08:00
Dan Poltawski
34ddaf7146 Merge branch 'MDL-39047_master' of https://github.com/markn86/moodle 2013-04-15 12:15:24 +01:00
Mark Nelson
12cb45f199 MDL-39047 forms: set the z-index of the calendar pop-up so that it renders above the filemanager 2013-04-15 17:37:41 +08:00
Frederic Massart
87c1c82286 MDL-38716 accessibility: ARIA attributes and roles defined on form actions 2013-04-15 11:46:05 +08:00
Mark Nelson
1711361042 MDL-26649 forms: ensure that both necessary variables are set before altering calendar image 2013-04-10 12:48:13 +08:00
Eloy Lafuente (stronk7)
668aaeb8f3 MDL-26649 forms: temp disable problematic call
The new version of the dateselector is causing JS to stop
working completely in a lot of forms, so I've disabled
temporarily the ofending call to allow other stuff to be
integrated and tested.
2013-04-09 19:37:08 +02:00
Mark Nelson
f40df210ab MDL-26649 forms: added a calendar icon that will display the calendar pop-up when clicked rather than the select boxes triggering the event 2013-04-09 14:52:57 +08:00
Dan Poltawski
5cc929bc12 Merge branch 'MDL-38691-master-int' of git://github.com/FMCorz/moodle 2013-04-03 16:27:16 +08:00
Frederic Massart
a4b076d51b MDL-38681 form: Changed collapse/expand button to a link 2013-03-28 10:18:58 +08:00
Frederic Massart
c55cd6ac64 MDL-38691 form: Styling for show more/less toggle 2013-03-26 17:20:58 +08:00
Damyon Wiese
d0fd9726d1 Merge branch 'MDL-30438_b' of git://github.com/rwijaya/moodle 2013-03-26 14:29:57 +08:00
Damyon Wiese
37e50e9316 Merge branch 'MDL-38598-master-int' of git://github.com/FMCorz/moodle 2013-03-26 13:28:57 +08:00
Rossiani Wijaya
41e2a9591f MDL-30438 Lesson Module: improve password field to disabled when password protect is set to no. 2013-03-25 11:26:50 +08:00
Frederic Massart
619fe67e32 MDL-38598 form: Prevent flickering due to advanced fields 2013-03-25 08:28:32 +08:00
Frederic Massart
f2c0aba81d MDL-38044 form: Added collapse/expand all buttons 2013-03-22 16:25:48 +08:00
Frederic Massart
0b8bb3fe5f MDL-38049 form: Collapsed sections are hidden on page load 2013-03-13 10:28:37 +08:00
Andrew Robert Nicols
e691028ab6 MDL-38090 JavaScript Make forms JS more resilient
This issue also corrects the way in which Y.one is called. Previously it
was called as constructor rather than as a static method so it always
returned a Y.Node, regardless of whether a node was found.

Additionally, this adds a config setting to the YUI configuration such that
debug messages are not shown in the JS console when debugging is disabled.
2013-02-22 17:11:34 +00:00
Damyon Wiese
2262c52122 Merge branch 'MDL-37012-master' of git://github.com/mouneyrac/moodle 2013-02-12 14:39:20 +08:00
Damyon Wiese
8dcca4aacb MDL-30637 Formslib - Cleanup for shortforms implementation (mostly comments)
Also added deprecated functions for the functions that were removed from MoodleQuickForm.
2013-02-11 10:37:13 +08:00
Ruslan Kabalin
ac5e6ca4d1 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
2013-02-07 14:38:37 +00:00
Ruslan Kabalin
a4067bfc48 MDL-30637 Simplify moodle forms
Make the forms easier to use and navigate by adding functionality to
collapse and extend form sections (headers). The logic is as follows:

If form contains 2 and less sections (headers):

* Display the form as non-collapsible at all.
* The point above can be overridden if developer marks the section as expanded
  in form definition (e.g. $mform->setExpanded('foo'));

If form contains 3 and more sections (headers):

* always expanding the first section and closing all others by default;
* always expanding a section containing at least one "required" element;
* expanding any section which contains validation errors after submission;
* expanding any section which was previously open on previous submit (e.g. when
  adding new choices);
* expanding the section which is marked as expanded in form definition (e.g.
  $mform->setExpanded('foo');
2013-02-07 14:13:36 +00:00
Jerome Mouneyrac
b4d24344c2 MDL-37012 some typos, add a new lang string, change tag 'a' for 'link', some code cleaning,
clean the external string against cross-scripting, proper usage of doclink,
correcting the require_once quickform/input

AMOS BEGIN
    CPY [download,block_community],[install,block_community]
AMOS END
2013-02-05 16:36:37 +08:00
Jerome Mouneyrac
e62cf63035 MDL-37012 fix wrong css + add final . to comment lines + do not use attributid parameter (duplicate of hiddeninputid) 2013-02-04 11:17:02 +08:00
Jerome Mouneyrac
46b229f9a8 MDL-37012-master redesign the community finder search form 2013-02-04 11:17:02 +08:00
Frederic Massart
cded83dd3c MDL-35675 forms: Remove constrain to viewport for popup calendar 2012-11-05 16:38:45 +08:00
Didier Raboud
ef46489f38 MDL-35675 forms: Popup calendar is not constrained any more 2012-11-05 16:37:48 +08:00
Jason Platts
8f38558b7a MDL-36075 Forms: Date selector in forms errors in IE7 2012-10-16 12:06:03 +01:00
Petr Škoda
6adabe48eb MDL-34741 use 2in3 in date selector form element 2012-08-11 20:40:04 +02:00
Sam Hemelryk
a7b2d08727 Merge branch 'MDL-33560-master' of git://github.com/FMCorz/moodle 2012-07-23 12:25:31 +12:00
Frederic Massart
6aa3aabe95 MDL-33560 Enrol: Enrol password can be unmasked 2012-07-20 09:00:39 +08:00