Issue Details (XML | Word | Printable)

Key: MDL-19750
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Sam Hemelryk
Reporter: David Mudrak
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-19077

popup_form() does not hide the Go button

Created: 09/Jul/09 12:12 AM   Updated: 13/Jul/09 12:30 PM
Return to search
Component/s: Lib
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: David Mudrak and Sam Hemelryk
Security Level: None
Resolved date: 13/Jul/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
popup_form() does not hide the "Go" button when called before the page output started.
It calls
 $output .= $PAGE->requires->js_function_call('hide_item', Array('noscript'.$formid))->asap();
The select field actually seems to work, it just does not hide the button. Also, the "Go" text appears only the the first button

From the jabber chat:
=================
(18:06:26) david: and why does it happen?
(18:06:53) Tim Hunt: I expect it used to be an inline script.
(18:07:00) david: I see
(18:07:01) Tim Hunt: I'm not sure why ASAP does not work
(18:07:47) Tim Hunt: Well, I sort of do see, but there is not an easy fix.
(18:07:59) Tim Hunt: Bt sam will be able to fix it.
(18:09:49) Tim Hunt: asap will put the js in <head>, so when it executes, the element wiht the right ID does not exist yet.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Sam Hemelryk committed 1 file to 'Moodle CVS' - 10/Jul/09 04:08 PM
weblib MDL-19750 Fixed regression caused by implementing new PAGE methods
MODIFY lib/weblib.php   Rev. 1.1299    (+1 -1 lines)
Sam Hemelryk added a comment - 13/Jul/09 12:30 PM
All fixed thanks David

Sam Hemelryk made changes - 13/Jul/09 12:30 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]