| 55 |
if (GB_REFRESHFM > 0) { |
if (GB_REFRESHFM > 0) { |
| 56 |
//this is here to refresh the browser - the only difficulty here is with replication |
//this is here to refresh the browser - the only difficulty here is with replication |
| 57 |
//it takes a while for the database to be updated and we don't want to refresh until that's happened |
//it takes a while for the database to be updated and we don't want to refresh until that's happened |
| 58 |
//ZZZZthe delay should really be moved to the greybox config options |
//ZZZZZZZZ the delay should really be moved to the greybox config options |
| 59 |
if (dowereplicate() == 'T') { |
if (dowereplicate() == 'T') { |
| 60 |
setTimeout(refreshit(),500); |
setTimeout(refreshit(),500); |
| 61 |
} |
} |
| 68 |
} |
} |
| 69 |
} |
} |
| 70 |
|
|
| 71 |
function refreshit() |
function refreshit(){ |
| 72 |
{ |
|
| 73 |
dbFM.dirListObj.refresh(); |
//ok, we've got a problem here - if the greybox has been called from dbfm then we need to refresh the dbfm browser BUT |
| 74 |
if (GB_REFRESHFM > 1) { |
//the properties box may have been called from an attachment so there will be no browser to refresh... |
| 75 |
dbFM.dirTreeObj.fetch(); |
try { |
| 76 |
|
dbFM.dirListObj.refresh(); |
| 77 |
|
if (GB_REFRESHFM > 1) { |
| 78 |
|
dbFM.dirTreeObj.fetch(); |
| 79 |
|
} |
| 80 |
|
} |
| 81 |
|
catch (err) { |
| 82 |
|
//don't actually need to worry - if it couldn't do it then it doesn't matter |
| 83 |
} |
} |
| 84 |
$("#GB_window,#GB_overlay").hide(); |
$("#GB_window,#GB_overlay").hide(); |
| 85 |
|
|