mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
"MDL-16597, fixed callback function"
This commit is contained in:
parent
41f23791f1
commit
45fa433ee1
@ -29,9 +29,10 @@ function filemanager_callback(obj) {
|
||||
refresh_filemanager(obj.filepath, fm_cfg[obj.client_id]);
|
||||
fm_cfg[obj.client_id].currentfiles++;
|
||||
|
||||
if (fm_cfg[obj.client_id].currentfiles>=fm_cfg[obj.client_id].maxfiles && fm_cfg[client_id].maxfiles!=-1) {
|
||||
if (fm_cfg[obj.client_id].currentfiles>=fm_cfg[obj.client_id].maxfiles && fm_cfg[obj.client_id].maxfiles!=-1) {
|
||||
var btn = document.getElementById('btnadd-'+obj.client_id);
|
||||
btn.style.display = 'none';
|
||||
if (btn)
|
||||
btn.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user