• Hello,
    First of all, thank you so much for this great plug-in.
    I used to use Tablepress and some other file plug-ins to meet my needs.
    Not that they are not good enough, File Away alone could play their roles.

    There’s one thing I wonder though.
    I have a table of txt files, and when I click one, I’d like to just open it on the same window instead of downloading it.

    I tried to remove ‘download’ attribute in the file-away-iframe-template.php file with $(…).removeAttr(‘download’), but I haven’t had luck yet. When I click a txt file, it’s still downloaded.

    Can you help me?
    Thanks in advance.

    • This topic was modified 8 years, 4 months ago by raining211.
Viewing 1 replies (of 1 total)
  • Thread Starter raining211

    (@raining211)

    I did it.
    I added this before </body> in the file-away template.
    Have a good day, everyone.

    <script type=”text/javascript”>
    (function($) {
    $(document).ready(function() {
    $(“div#MyTable a”).removeAttr(“download”);
    });
    })(jQuery);
    </script>

Viewing 1 replies (of 1 total)
  • The topic ‘How can I remove ‘download’ attribute?’ is closed to new replies.