Commit Graph

274 Commits

Author SHA1 Message Date
Matt Pass
e4fd3927fa Version number update to v0.7.6 v0.7.6 2012-07-01 14:01:31 +01:00
Matt Pass
a5e7452673 Fix to saving previousFiles & last10Files
Only saves files now if there are some (ie !="CLEAR")
2012-07-01 14:01:04 +01:00
Matt Pass
6a1796a284 Fixed previousFiles, settingsScreen & visibleTabs
Comma added before next file ref in previousFiles array string
settingsScreen now determins if it's being hidden or not
(used by update button)
Showing & hiding tabs now works again in useNewSettings function
2012-07-01 13:54:27 +01:00
Matt Pass
aaac445d84 CSS comment & simpler DOM targeting
Added comment on moving 3rd CSS class
showHideTabs now working again and simpler too
2012-07-01 13:49:32 +01:00
Matt Pass
fd9021190a Wrong comment syntax & new file undefined issue
Used // instead of /* */ in CSS, caused .cm-tab:after to be a missing
class
Simplified conditional inserting of tab arrow in PHP
Only checking indexOf .js, .css and .less if there is a fileName
2012-07-01 13:46:43 +01:00
Matt Pass
5c35c18e49 Commit again, no changes 2012-07-01 13:43:13 +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
18b2a1a65f New perms param & chmod function
updateFileManagerList now takes a perms param
This is used when action=="chmod"
The target element is established and the new perm set in the span
New chmod function to receive file & new permission
This then adds to the server queue and server message
2012-06-27 20:56:51 +01:00
Matt Pass
edc5a9ea0a Perms value format change & perms span has ID
3 chars for perm now, ie 705, rather than 0705
Spans to contain the perm value now have an ID
This is so they can be updated after we chmod
2012-06-27 20:54:39 +01:00
Matt Pass
72edcc692b Dir size, chmod, perms update, hiding info
Return false on context menu
Show dir size if it's a dir
Hiding read/write info and absolute path if not logged in
Clarified by renaming relative path & absolute path
Permisions table to show checkboxes according to value
Input field & checkboxes linked, perm value established on changing
value
Simple validation carried out before you can submit
Submit calls the chmod function which starts the process of change
2012-06-27 20:53:10 +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
c6224c4a4a User select, table style, altered cols & button
Allow users to select elements in this window (needed to copy text)
Styles added for new chmod table
Slightly narrower columns
Update button styling
2012-06-27 20:44:29 +01:00
Matt Pass
76f9c9dd7c Omitting parens on functions caused issue
Put parens back in, thought it worked without them
(if you're not passing a var through?). Oh well.
2012-06-27 20:41:11 +01:00
Matt Pass
d75c7f9f50 Properties screen
Shows basic info for files, accessed from file manager menu
2012-06-25 07:17:39 +01:00
Matt Pass
cc7887d452 $docRoot now defined here 2012-06-25 07:14:52 +01:00
Matt Pass
29f431cd78 Simplified screen showing & properties screen
Removed vis argument from function, hardcoded 'show'
New propertiesScreen function
2012-06-25 07:14:27 +01:00
Matt Pass
1a97623dee $docRoot moved, file menu hiding & Properties
$docRoot now established in settings.php
File manager menu now hides onmouseout
Properties added as an option to the file manager menu
Don't need to pass 'show' to screen showing functions
As we don't need parens with no params, () also removed
2012-06-25 07:12:57 +01:00
Matt Pass
79bd665b92 Removed document.all to check for .rules instead
Used more appropriate feature detection
v0.7.5
2012-06-24 13:44:08 +01:00
Matt Pass
0de026fc2b No longer passing through old password
This is now picked up from config.php prior to any changes
No need to pass through at all and removed as its a security risk
2012-06-24 12:59:28 +01:00
Matt Pass
cb3f87d4d9 Version no update to v0.7.5 2012-06-24 12:50:01 +01:00
Matt Pass
f9ec7b7138 Only 1 hardcoded array position now & adding LESS
Stopped identifying CSS classes by number and now finding by
selectorText
A bit more code, but a bit more reliable & flexible (as you can shift
order now)
Added LESS support in all areas needed
Visible tabs has a bug and doesn't work now, to fix
2012-06-24 12:48:52 +01:00
Matt Pass
77e0e1d51f Added LESS & CoffeeScript support 2012-06-24 12:45:27 +01:00
Matt Pass
c28cd3506e No longer cleaning plugins array
This is because it replaces with HTML equivalents and causes problems
Variable is only updateable if you're logged in, so has reasonable
security
Will create a better solution in the future
2012-06-24 12:44:55 +01:00
Matt Pass
7dd3c36867 Removed CSS classes & altered people array
5 x CSS classes removed as not being used in theme example
People array altered to represent a few people who have given more
feedback & code
JS mode added because it's now compiled and needs to know which mode is
needed
Found the visible tabs has problem working, needs fixing
2012-06-24 12:43:05 +01:00
Matt Pass
4dd36c5130 LESS added, subsequent icons Y pos shifted 2012-06-24 12:39:16 +01:00
Matt Pass
f00628539a LESS icon added to spritesheet 2012-06-24 12:38:48 +01:00
Matt Pass
fcc5896926 LESS condition added 2012-06-24 12:38:34 +01:00
Matt Pass
75881d1c9f LESS mode included
Compiled into uglified JS file
2012-06-24 12:38:07 +01:00
Matt Pass
9597b057a6 strClean and numClean functions & usage
New functions to return a santisied string or number
Usage on quite a few variables
2012-06-23 17:33:48 +01:00
Matt Pass
7d209a1c58 Sanitising vars and working with new exclude var
Cleaning vars with strClean function now
Made a slight change to zipTgt to handle root with empty var
Checks and only adds file to zip if it's not excluded
2012-06-23 17:31:04 +01:00
Matt Pass
490ca1c1c3 Using codemirror-compressed.js now
Using a single JS for main CodeMirror JS file and 7 x mode JS files
This is from their compression page where all files are stored in 1 file
and also uglify compressed
Result is around 105k less bytes and will load quicker too as just 1
file
2012-06-23 17:24:59 +01:00
Matt Pass
95c0aa1812 No longer testing on document.all
Not testing for document.all to determin browser type & version anymore
Now actually testing for rules & pageX instead
2012-06-23 17:22:48 +01:00
Matt Pass
9cbb9f7529 Zip It! new URL format
Don't need index.php, so removed that
Added extra query string param to list files that should be excluded
from zip
Value of this param is media files (as per list we want to exclude
searching on)
Means you don't end up with long processes and potentially big zips
2012-06-23 17:20:40 +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
29dff39bf1 Cleaning strings
Getting GET vars cleaned before use
2012-06-23 17:17:09 +01:00
Matt Pass
ef8190612f Now using codemirror-compressed.js
No need for JS mode file either, included in codemirror-compressed.js
2012-06-23 17:16:13 +01:00
Matt Pass
55d547d947 CodeMirror JS & mode compressed to 1 file
Now using the compression option on the CodeMirror site to get a single
JS file
This includes codemirror.js file & the 7 mode JS files in 1 file, also
uglify compressed
Result is a saving of around 105k!
2012-06-23 17:15:11 +01:00
Matt Pass
e80825ac3a Code reduction and clarification
this.innerHTML now using it's own innerHTML. Does work using dragSrcEl,
but is tricky to figure out
Condensed the 4 x array switches to a single for loop
2012-06-21 14:18:59 +01:00
Matt Pass
8d8edc171c Version v 0.7.4 number change only v0.7.4 2012-06-21 07:56:51 +01:00
Matt Pass
c1f4740b68 Vars & functions to control tab dragging
New dragSrcEl variable and 4 x functions to hand start, over, drop and
end
Means tabs can now be dragged & all references appropriately swapped
2012-06-21 07:56:10 +01:00
Matt Pass
d6a5f486d7 Draggable attribute added
To allow tabs to be dragged (using HTML5)
2012-06-21 07:54:39 +01:00
Matt Pass
807cc53fa8 Target references now hardcoded on init
Previously identified objects by selectTab, but this doesn't work with
dragged tabs
Now identifying using init 'num' value, which is much better & also
means less code
2012-06-21 07:53:55 +01:00
Matt Pass
2237c91067 Version number, Zip It! plugin & tabWidth
Version number now v 0.7.3
Zip It! is new plugin instead of backupOpenFiles
tabWidth now set to 4 chars by default
v0.7.3
2012-06-17 16:34:37 +01:00
Matt Pass
98a08fddf8 tabWidth option and plugins tooltip
tabWidth option now saved as a setting
Plugins show tooltip now on hover via title attribute
2012-06-17 16:33:14 +01:00
Matt Pass
21cdcb20b4 New tabWidth option
tabWidth option now shown in 'style' section
On change, this affects editor demo instance
2012-06-17 16:27:59 +01:00
Matt Pass
47547b2ae8 Dark active line & dynamic tab widths
Config file included so we can use vars
Active line is now black rather than dark blue
(This is a bit experimental and unusual, so we'll see how it works out)
indentUnit & tabSize params in CM now uses JS var, so updateable
2012-06-17 16:26:43 +01:00
Matt Pass
6e9af92471 tabWidth var & Zip It! file manager option
New tabWidth var available to use
New Zip It! option added to file manager menu
(allowing users to zip anything on demand)
2012-06-17 16:21:53 +01:00
Matt Pass
cc7df4222a Removed unneeded for loop
Completely unneeded for loop controlling tabWidth's removed
2012-06-17 16:20:35 +01:00
Matt Pass
25b5af50c2 tabWidth changable & Zip It! on Demand
useNewSettings now takes a tabWidth param
This changes the width of all open documents in CM instance
New function to call Zip It! plugin on demand with target
(This means you can zip anything up from the file manager menu)
2012-06-17 16:17:31 +01:00
Matt Pass
7c8c728ad4 Darker file manager menu
Was same colour as file manager and didn't stand out
Now slightly darker to help visual appearance
2012-06-17 16:15:02 +01:00