Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename file/dir #50

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Rename file/dir #50

wants to merge 3 commits into from

Conversation

GHsun
Copy link

@GHsun GHsun commented Jul 25, 2016

Hi
introduced a file/directory renaming using jQuery.
your comments/amendments are welcome

(I'm new to GitHub, let me know if I could to better)

P.S. I have used newer version of jQuery:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
However, proposed code will work with 1.5.2 version anyway

Cheers
Gsun

GHsun added 3 commits July 25, 2016 11:10
External function to rename files and directories
@@ -3270,8 +3276,10 @@ function(){
</div>
<!-- END: Info area -->

<?php
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If anyone wants renaming to be allowed explicitly

@borekon
Copy link

borekon commented Jul 26, 2016

It is not working for me.
It is supposed a "rename" button has to appear?

@GHsun
Copy link
Author

GHsun commented Jul 27, 2016

hi borekon
if you use earlier file (e47897c) - then it will only work if user is logged in and $_CONFIG['upload_enable'] = true;
in the second version (7e47a68) - user should be logged on and in config you should have $_CONFIG['rename_enable'] = true;

there is no button, code works on double click on a row, but not on the actual name of a file/drictory (basically next to the item you want to rename)

@Spectroxx
Copy link

Still works like a charm after 5 years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants