Oh no! Some styles failed to load. 😵 Please try reloading this page
Menu â–¾ â–´

#157 Refresh resource window after upload in filebrowser

Version 2.x
closed
Editor (144)
5
2007-07-07
2005-10-07
Didgiman
No

When you have uploaded a file in the filebrowser, the
resource window does a refresh.
The problem with this, however, is that -when your
internet settings are set to 'Automatically' check for
newer versions of the page- you will get a chached
version of the resource window, meaning a version that
doesn't display your freshly added file.

This can be solved by changin the following line
in /editor/filemanager/browser/default/frmresourceslist.ht
ml :

oConnector.SendCommand( 'GetFoldersAndFiles', null,
GetFoldersAndFilesCallBack ) ;

with this one:

oConnector.SendCommand
( 'GetFoldersAndFiles&uuid=' + new Date().getTime(),
null, GetFoldersAndFilesCallBack ) ;

This line is located in the LoadResources() function.

I hope this helps anyone, and maybe this can be
included in the next release?

Discussion

  • Alfonso Martinez

    • assigned_to: nobody --> alfonsoml
     
  • Alfonso Martinez

    Logged In: YES
    user_id=1356422
    Originator: NO

    I've added the salting directly in the oConnector.SendCommand function as part of the work in http://dev.fckeditor.net/ticket/454

     
  • Alfonso Martinez

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign Up No, Thank you