Issue Details (XML | Word | Printable)

Key: MDL-10278
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Minor Minor
Assignee: Petr Škoda (skodak)
Reporter: Daniele Cordella
Votes: 0
Watchers: 1
Operations

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

Button "Search for web page..." not working

Created: 27/Jun/07 10:22 PM   Updated: 04/Nov/08 06:48 PM
Component/s: Resource
Affects Version/s: 1.8.1, 1.9
Fix Version/s: None

Issue Links:
Blockers
 
Cloners
 
Duplicate
 

Participants: Daniele Cordella, Eric Bollens and Petr Škoda (skodak)
Security Level: None
Resolved date: 05/Jul/07
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
Create a resource type "Link to a file or web site".
Inside the resource settings page push the button "Search for web page..."
What is supposed to happen?
NOTING HAPPENS!!!!!!!!!!

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Eric Bollens added a comment - 17/Jul/07 05:27 AM
Replace lines 630 - 634:

if (!empty($CFG->resource_websearch)) { $searchbutton = $mform->addElement('button', 'searchbutton', get_string('searchweb', 'resource').'...'); $buttonattributes = array('title'=>get_string('localfilechoose', 'resource'), 'onclick'=>"return window.open('$CFG->resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');"); $searchbutton->updateAttributes($buttonattributes); }

With these lines:

if (!empty($CFG->resource_websearch)) { $searchbutton = $mform->addElement('button', 'searchbutton', get_string('searchweb', 'resource'), array('title'=>get_string('searchweb', 'resource'), 'onclick'=>"return window.open('$CFG->resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');")); }

MORE DETAILS IN MDL-9262.


Daniele Cordella added a comment - 18/Jul/07 02:04 PM
thanks Eric.