[TYPO3-core] RFC: Put JavaScript files into separate directory

Patrick Broens patrick at patrickbroens.nl
Tue Sep 25 13:09:23 CEST 2007


Oliver Hader wrote:
> Hi,
> 
> what do you think about moving the JavaScript files to a separate
> directory in ./typo3/ and ./t3lib/, like e.g. ./typo3/jslib/ and
> ./t3lib/jslib/? This new directories could also have the name 'jsfunc',
> instead of 'jslib'...
> 
> The candidates would be:
> ./typo3/jsfunc.tbe_editor.js
> ./typo3/md5.js (+ renaming to jslib.md5.js or jsfunc.md5.js)
> ./typo3/tab.js (+ renaming)
> ./typo3/tree.js (+ renaming)
> ./t3lib/jsfunc.evalfield.js
> ./t3lib/jsfunc.inline.js
> ./t3lib/jsfunc.menu.js
> ./t3lib/jsfunc.updateform.js
> ./t3lib/jsfunc.validateform.js
> 
> What do you think?
> 
> 
> olly

+1 for calling it "jslib" and moving them to a separate directory.

But when the files are already in a to javascript dedicated directory, 
why rename the files to jsfunc.name.js? It's obvious these are 
javascript files, by directory and extension, so 'jsfunc' does not have 
to be a part of the file name. Secondly when using 'jsfunc' it suggests 
the files declare one function, which is not true.

Patrick


More information about the TYPO3-team-core mailing list