Commit Graph

29 Commits

Author SHA1 Message Date
Matt Pass
b0012bee27 Value not in rtrim but not needed anyway 2012-07-27 13:56:21 +01:00
Matt Pass
d256b35a67 file & root alts, shortURLStarts gone & onLoad
docRoot defined in settings.php now so no need to set
docRoot swapped for iceRoot in a few areas (there were kind of one and
the same before, ugghh)
Conditionally prefix file refs with $docRoot and/or $iceRoot if
different paths are needed
Removed shortURLStarts - too inefficient & problematic
Only on winow load begin to createNewCMInstance
(In the rare case the files frame loads before the editor frame)
Code simplified in a few areas
2012-07-27 11:52:40 +01:00
Matt Pass
97f430b2b7 shortURL changes
shortURL is now basePath with shortURLStarts conditionally removed from
start
2012-07-25 19:10:08 +01:00
Matt Pass
529f7198b1 replace indexOf with lastIndex on shortURLstarts
causes probs if you have the same term more than once in your path
(ie, var/www/mysite/www), previously took first www
Now takes last one and solves path issues in quite a few areas
2012-07-24 13:41:08 +01:00
Matt Pass
948978b5e1 docRoot is now the tree root, simplified saveFile 2012-07-20 17:25:51 +01:00
Matt Pass
e4e9217d84 Putting server vars into $ICEcoder array
All server variables such as codeMirrorDir, visibleTabs etc now in
$ICEcoder array
This is so we have a single object to contain all settings, just like
the JS equivalent
2012-07-13 18:05:28 +01:00
Matt Pass
971cd573fc Now passing back oldFileName to updateFileManager
Allows for API calls now not using rightClickedFile
2012-07-09 07:35:45 +01:00
Matt Pass
89777eebcf message, ask & getInput functions
alert calls now routed to message function
confirm calls now routed to ask function
prompt calls now routed to getInput function
This is so you can replace how these are handled if you wish
(Useful if you want to get away from browser chrome & UA dialogs)
2012-06-27 21:23:54 +01:00
Matt Pass
6e6a0dae96 Permissions function added
New function to change permissions on request
Takes permission & applies top file/folder
Then updates file manager tree and server message
If it can't be changed, provide alert message
2012-06-27 20:47:00 +01:00
Matt Pass
c8a73fa56e String & number sanitising
Now cleaning strings & numbers before use in a few places
2012-06-23 17:18:12 +01:00
Matt Pass
3e41afb0a6 Set value not innerHTML in textarea
Setting innerHTML works fine in Chrome & Firefox but not IE
In order to make IE compatible, made this improvement
(More syntactically appropriate anyway)
2012-05-31 14:35:48 +01:00
Matt Pass
abd61689f1 Better handling of changed files
Insetad of notifying user that file they're attempting to save, now they
can revert
This means the file they're trying to save is reverted to the server
file
Changes they have made are copied into a new file
User can optionally cancel to avoid this
2012-05-26 22:25:12 +01:00
Matt Pass
96df3ac91b Shortening of hex codes & swapping tab text cols
Hex codes shortened if poss (ie, #888888 becomes #888 and #ff0000
becomes #f00)
Swapped text colour on tabs, selected now has black text, others white
text
2012-05-25 17:03:12 +01:00
Matt Pass
b7769e6203 Dealing with fileMDT for new files
Don't tack fileMDT onto query string if it's undefined (ie, new files)
New file saves then possible if we don't have a fileMDT on query string
2012-05-08 18:29:03 +01:00
Matt Pass
0ca29f9201 Additional if check on file datetime for collab edits
Wrapped an additional if around the save operations
This is to check if we have latest file, allowing collab edits
(if we attempt save and don't have latest modified date time, alert user
Other minor updates to work with new MDT vars, params, arrays
clearstatcache necessary to get latest modified datetime
2012-05-08 07:51:31 +01:00
Matt Pass
b129bc39cb Save now works with stickyTabs, plus minor improvements
When you save, if there is a stickyTab window, it reloads
Popups for images now have white glow around them, plus fix to text color
Moved clearing the server message to cover images too
2012-05-01 07:35:00 +01:00
Matt Pass
8233763511 Extra code to allow for auto opening of files
On opening and files being auto loaded, we need to establish the shortURL
This is so tabs can have the correct name on auto loading files
2012-04-14 17:54:52 +01:00
Matt Pass
07e44ecfb5 Overwrite permission prompt plus better display & error catching
Now asks for overwrite permission if saving new file or save as over another file
Server message now shows your new filename when saving
Error catching so if not saving it clears server message
2012-04-07 21:14:24 +01:00
Matt Pass
422b013330 Minor bug fix to better detect file saving capabilities
Now tests if a file exists and is writable or is new before saving
Avoids false error problem
2012-03-26 07:54:11 +01:00
Matt Pass
5f580811a4 Clearing of server queue items in turn & saving from content snapshot
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)
2012-03-25 16:57:26 +01:00
Matt Pass
f507917fd6 Error catching to alerts plus clearing serverMessage
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
2012-03-12 17:50:13 +00:00
Matt Pass
4ab18803fc Rename tab only if it's a new name
If we have a new filename redo the tab, otherwise don't
2012-03-09 07:24:00 +00:00
Matt Pass
5a1b10ed22 Improvement to File Manager
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
2012-03-02 15:24:20 +00:00
Matt Pass
25a05027b5 Save As added to file control system
saveType var passed through on saving to start a save or save as routine
2012-02-23 18:11:50 +00:00
Matt Pass
a0cd251df0 New folder functionality
Extra code added to allow creation of new folders
Minor fix to delete function by adding action var
2012-02-12 14:28:29 +00:00
Matt Pass
3202cfe0dd Alterations to active line
Now works with dynamic CM created instances
New loadingFile var to indicate the start & end of file load sequence
2012-02-09 07:50:28 +00:00
Matt Pass
3d7980a148 </textarea> in loaded content fix
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
2012-02-03 08:03:19 +00:00
Matt Pass
74aedb9668 Rename & active line
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
2012-01-28 16:42:32 +00:00
Matt Pass
972a3434bc v0.5.0 update
Global variables removed from JS file
Plugins system evolved, now including setInterval
Seperate CodeMirror instances per tab
backupOpenFiles plugin created
Minor fixes & improvements
2012-01-20 09:55:29 +00:00