/[drupal]/contributions/modules/dbfmgreybox/dbfmgreybox.js
ViewVC logotype

Diff of /contributions/modules/dbfmgreybox/dbfmgreybox.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4, Tue Jan 20 11:07:47 2009 UTC revision 1.5, Tue Aug 25 14:36:06 2009 UTC
# Line 55  var retval; Line 55  var retval;
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      }      }
# Line 68  var retval; Line 68  var retval;
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    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.2