When an action is performed (or not performed due to error), it is cleared from the server queue
Saving is now done from the saveTemp1 textarea element (a snapshot when save is requested by user)
New server queue system added which deals with and processes server calls in turn
(This should stop any potential connectity conncurrency issues)
Saving now takes a temp snapshot of the content to be saved when due in the server queue
Having a server queue is more professional and means you can queue up actions while other actions are happening
refresh() is now called in a couple of places so scroll position is applied
(This avoids the bug when switching between tabs)
Server messages now accept a message as part of the variable
(This means you now show messages via the plugins setInterval system)
CSS color preview boxes appear when text cursor moves within the color value
CSS color preview system also ties in with Code Assist and is part of the toggle
You also now refocus when clicking Code Assist
Plugins are now processed through the new server queue system
This should help avoid any potential connectivity concurrency issues and is more professional
Alerts now show when an action cannot be taken (such as not having permission to save file etc)
Clearing of serverMessage upon successfully processing action
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