mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
"MDL-13766, fix event register bug"
This commit is contained in:
parent
2b38e2447c
commit
9bf0d6332f
@ -1520,14 +1520,13 @@ _client.print_header = function(){
|
||||
var panel = new YAHOO.util.Element('panel-$suffix');
|
||||
var str = '';
|
||||
str += '<div id="repo-tb-$suffix"></div>';
|
||||
str += _client.uploadcontrol();
|
||||
panel.set('innerHTML', str);
|
||||
_client.makepath();
|
||||
}
|
||||
_client.print_footer = function(){
|
||||
var panel = new YAHOO.util.Element('panel-$suffix');
|
||||
panel.get('element').innerHTML += _client.makepage();
|
||||
panel.get('element').innerHTML += _client.uploadcontrol();
|
||||
panel.get('element').innerHTML += _client.makepage();
|
||||
var oDiv = document.getElementById('repo-tb-$suffix');
|
||||
if(!_client.ds.nosearch){
|
||||
var search = document.createElement('A');
|
||||
@ -1814,8 +1813,10 @@ _client.makepath = function(){
|
||||
var el = new YAHOO.util.Element(link.id);
|
||||
el.id = _client.repositoryid;
|
||||
el.path = _client.ds.path[i].path;
|
||||
el.on('click', function(){
|
||||
repository_client_$suffix.req(this.id, this.path, 0);
|
||||
el.on('contentReady', function(){
|
||||
this.on('click', function(){
|
||||
repository_client_$suffix.req(this.id, this.path, 0);
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user