mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
updated jquery to v1.9.0 and funcyBox to v.2.1.4
This commit is contained in:
parent
d276b76e4b
commit
d02bdf23f8
38 changed files with 466 additions and 50 deletions
|
|
@ -46,14 +46,14 @@ Util = exports || {};
|
|||
* длинны расширения -
|
||||
* имеет смысл продолжать
|
||||
*/
|
||||
if (typeof pExt === 'string' && pName.length > pExt.length) {
|
||||
if (Util.isString(pExt) && pName.length > pExt.length) {
|
||||
var lExtNum = pName.lastIndexOf(pExt), /* последнее вхождение расширения*/
|
||||
lExtSub = lLength - lExtNum; /* длина расширения*/
|
||||
|
||||
|
||||
/* если pExt - расширение pName */
|
||||
lRet = lExtSub === pExt.length;
|
||||
|
||||
}else if(typeof pExt === 'object' && pExt.length){
|
||||
}else if(Util.isObject(pExt) && pExt.length){
|
||||
for(var i=0; i < pName.length; i++){
|
||||
lRet = Util.checkExtension(pName, pExt[i]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue