File Manager lock now moves as the width changes (via setLayout)
serverMessages block now displays message when creating, saving, deleting, loading and renaming
Function to handle display of server messages incl fade in/out
$ownerInfo var previous available, based on posix_getpwuid
However, this isn't available on all servers, so removed
File attributes now no longer show as lock, just CHMOD info next to filename
If you're not logged in though, you see lock with alert message via onClick
$restrictedFiles now covers folders too
Removed redundant code for files when you're restricted no need for if clause
New vars added for codeAssist, mouseDown and draggingFilesW
Upload references removed
Standalong & chars only replaced if Code Assist is on
New function to resize the file manager width on click-drag
scrollTop removed from function to determine mouse x & y pos
However, new dragCursorTest function triggered from the function
Function added to toggle Code Assist var on/off
moving mouse now triggers function to get mouse position x & y pos in html tag not body
also detects if we can resize file manager width
new event states added to detect if mouse is down or not and set bool of mouseDown
moving the mouse now triggers a function to get the mouse x & y pos
also detects if we can maybe resize the file managers width
mouseDown var added as a bool on mouse down & update
Upload area removed
Code Assist function added
user0-select: none and the prefixes applied to body to stop elem highlighting on click-drag
upload classes removed as upload area is now removed
tabsBar now has a 0.2s transition on the BG image for fancy animed colouring
new classes for Code Assist function
Adding, editing or removing file or folders now triggers function to update manager
Previously it reloaded the file manager, but this is no longer needed
Overall result is that it works much faster, you don't lose your opened tree structure etc
File Manager now 250px wide by default
Also locked by default
setLayout function now allows partial set mode to set structure while waiting for FM to load
contentCleanUp now replaces via regex to handle multiple replacement of & and textarea
New Folder prompt now relative to location
Huge updateFileManager function to allow adding, editing & removing of files to reflect immediately in FM
2 x JS scripts loaded from Code Mirrors lib plus the call to allow selected text matching
Different styling for visible & hidden classes
These classes mean not only faster tab switching but also fixes render problems on some computers
new variable to allow JS to know what the servers full path is
File Manager pane open and locked by default
Opacity of it is 0 until loaded, then it shows
Layout set at end of this file to sort structure until FM is loaded
(Of course when fully loaded, a full setLayout is called)
shiftKeyDown now detected
Loading mask hidden on load
Setting ctrlKeyDown to false on all functions to avoid stickiness
Same for shiftKeyDown
Save As functionality added
Window no longer opens on CTRL+Enter if it's a new file
Removed code realting to idea of slow clicking to begin rename process
New File function added
New Folder function added
Altered rename function to work with single file
Altered delete function to display better path in prompt
File Manager Menu positioning & display function
Mouse X & Y position function added to enable positioning
New file manager menu which appears on right click
Provides functionality for:
- new folder
- new file
- rename file/folder
- delete file/folder
- view webpage
Various functions updates to work with dynamically generated CM instances
New variables added to track the CM instance refs & next avail number
CTRL+G now focuses on go to line box
A few lines of now useless code removed
No longer creates 10 x instances
Instead creates CM objects (& cMActiveLine) on demand
All hardcoded refs from 1-10 removed, now dynamic
Additional code to stop it seeing just loaded files as changed
li tags are now also inline
PHP will now load content into textarea container, but replacing </textarea> with altered tag
This ensures the actual textarea container isn't escpaed early
This replacement is reversed back to the original by the contentCleanup function
contentCleanUp function repurposed
(No longer removes tabs & spaces & sets tabbing, new purpose is some HTML encoding of chars such as & to &)
(Also won't clean up loaded JS or CSS files anymore)
CTRL+Enter will now open webpage in new tab
ESC will now toggle comments for that line in a context aware way
Navigation expands contracts using JS instead of CSS (fixes issue #2)
New rename tab function added
Content type also determined by filename ext being .js or .css
Multiple new tabs can be opened now, instead of just 1
ShortURL established for renameFile function, fixes problem
lineCommentToggle function added
Tab now renamed on saving file under new name
Clear history moved to a repurposed contentCleanUp function in JS file
Clear & set active line class to line 1
ActiveLine CSS class added, shows this on cursor activity
Improvement to avoid doing this out on highlighting of text
Will no longer append end tags if in a JS or CSS file
a tags are also now appended inline, no line returns