Removed part of url thet says that js is disabled ("no-js")

This commit is contained in:
coderaiser 2013-02-19 05:33:19 -05:00
parent 307c22173e
commit d8a053f670
8 changed files with 42 additions and 59 deletions

View file

@ -23,9 +23,7 @@
FILE_NOT_FOUND = main.FILE_NOT_FOUND,
OK = main.OK,
FS = CloudFunc.FS,
NO_JS = CloudFunc.NOJS,
INDEX = null,
REQUEST = 'request',
@ -382,7 +380,7 @@
function getCleanPath(pReq){
var lPath = getPath(pReq),
lRet = Util.removeStr(lPath, [NO_JS, FS]) || main.SLASH;
lRet = Util.removeStr(lPath, FS) || main.SLASH;
return lRet;
}
@ -401,8 +399,7 @@
if(pReq){
lPath = getPath(pReq);
lNoJS = Util.isContainStr(lPath, NO_JS)
|| lPath === '/' || main.getQuery(pReq) === 'html';
lNoJS = lPath === '/' || main.getQuery(pReq) === 'html';
}
return lNoJS;