• Resolved Fred_CA

    (@mesetudes)


    Hi,

    For a better UX i’m trying to show the edit screen immediately after the upload.
    So instead of going to the browser and show the new file in the list, it show the edit screen to help users edit the files without a click.

    Where could I find the spot where you route screens?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Fred_CA

    (@mesetudes)

    Modify buddydrive-views.min.js

    Find : ` // Try to find the best place to inject the uploaded file
    if ( file.get( ‘file_id’ ) && ! _.isUndefined( buddydrive.Uploader ) ) {
    position = _.indexOf( _.pluck( buddydrive.Uploader.filesQueue.models, ‘id’ ), file.get( ‘file_id’ ) );
    if ( -1 !== position ) {
    options = { at: position };
    }`
    and add
    window.location = '#edit/'+file.get( 'id' );
    just after

    Works fine

    Plugin Author mrpritchett

    (@mrpritchett)

    Glad you were able to find an answer for your customization. However, just so you are aware, this edit will be overwritten by any update to BuddyDrive.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show edit screen after upload’ is closed to new replies.