Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter LeGuerg

    (@isa_admin)

    Hi,

    Also, I first suspected a javascript error, but no warnings were triggered on page loading, nor on link click.
    So, I checked PHP files. I looked at:
    ./plugins/file-away/lib/cls/class.fileaway.php
    ./plugins/file-away/lib/inc/inc.directories.php

    It seems that this HTML code in the first file (line 266)

    "<a href='' id='rename-ssfa-file-$uid-$count'>".__('Rename', 'file-away')."</a><br>".
    "<a href='' id='delete-ssfa-file-$uid-$count'>".__('Delete', 'file-away')."</a>";

    and this one in the second file (line 119),

    ? "<a href='' id='rename-ssfa-dir-$uid-$f'>".__('Rename', 'file-away')."</a><br>".
    "<a href='' id='delete-ssfa-dir-$uid-$f'>".__('Delete', 'file-away')."</a></td>" 

    were leading to refreshes the page on Rename/Remove action. It seems that the empty href=” code is the cause of the refresh action (on Chrome 53, at least)

    So, I replaced the above codes with href=’javascript:’:

    "<a href='javascript:' id='rename-ssfa-file-$uid-$count'>".__('Rename', 'file-away')."</a><br>".
    "<a href='javascript:' id='delete-ssfa-file-$uid-$count'>".__('Delete', 'file-away')."</a>";
    ? "<a href='javascript:' id='rename-ssfa-dir-$uid-$f'>".__('Rename', 'file-away')."</a><br>".
    "<a href='javascript:' id='delete-ssfa-dir-$uid-$f'>".__('Delete', 'file-away')."</a></td>" 

    And now, all is working fine again ! 😉

    Thx, hope this may help someone

    • This reply was modified 9 years, 8 months ago by LeGuerg.
Viewing 1 replies (of 1 total)