mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(util) getExtension -> getExt
This commit is contained in:
parent
3e1c915a78
commit
b01b1be71b
3 changed files with 4 additions and 4 deletions
|
|
@ -1807,7 +1807,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
this.getType = function(name, callback) {
|
||||
CloudCmd.getExt(function(extensions) {
|
||||
var index,
|
||||
ext = Util.getExtension(name);
|
||||
ext = Util.getExt(name);
|
||||
|
||||
ext = extensions[ext];
|
||||
|
||||
|
|
@ -1863,7 +1863,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
info.dirPath = Cmd.getCurrentDirPath();
|
||||
info.parentDirPath = Cmd.getParentDirPath();
|
||||
info.element = current;
|
||||
info.ext = Util.getExtension(name);
|
||||
info.ext = Util.getExt(name);
|
||||
info.files = files.children,
|
||||
info.filesPassive = filesPassive,
|
||||
info.first = files.firstChild;
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@
|
|||
|
||||
if (params.name) {
|
||||
p = params,
|
||||
extension = Util.getExtension(p.name),
|
||||
extension = Util.getExt(p.name),
|
||||
type = ext[extension] || 'text/plain',
|
||||
encoding = '';
|
||||
|
||||
|
|
|
|||
|
|
@ -869,7 +869,7 @@
|
|||
* @param pFileName
|
||||
* @return Ext
|
||||
*/
|
||||
this.getExtension = function(name) {
|
||||
this.getExt = function(name) {
|
||||
var ret = '',
|
||||
dot,
|
||||
isStr = Util.isString(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue