Some bugs with listNameFromUrl()

Oct 3, 2010 at 5:15 AM

If we use default list name, then http://.../lists/list and http://.../lists/list1 have the same "listPath.indexOf(listCollList)". I fix it use the follow code:

function listNameFromUrl() {
.....
  var listPath = unescapeUrl(thisPageBaseName.substring(0, thisPageBaseName.lastIndexOf(SLASH))).toUpperCase()+SLASH;
.....
var listCollList = defaultViewUrl.substring(0, defaultViewUrl.lastIndexOf(SLASH)).toUpperCase()+SLASH;
....
 }
Will be great if this fix have been used in new version.  
P.S. Sorry for my english....
P.P.S.This lib is super!!!
Coordinator
Oct 3, 2010 at 1:57 PM
Nice catch. I'll take a look at getting this into the upcoming release. M.
Coordinator
Oct 3, 2010 at 1:58 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.