CCK - NPOB - Fix separator and some positioning

git-svn-id: svn://10.0.0.236/trunk@256116 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkaply%us.ibm.com 2009-02-05 16:22:00 +00:00
parent 26166ed663
commit 4adf46bd77

View File

@ -295,22 +295,22 @@ CCKService.prototype = {
BookmarkTitle = this.getString(prefix + "BookmarkTitle" + i);
if (BookmarkTitle) {
BookmarkURL = this.getString(prefix + "BookmarkURL" + i);
if (BookmarkURL) {
var bmtype = this.getString(prefix + "BookmarkType" + i);
var curitem;
if (bmtype == "separator") {
curitem = this.bookmarks.insertSeparator(container, location);
} else if (BookmarkURL) {
if (bmtype == "live") {
curitem = this.livemarks.createLivemark(container, BookmarkTitle, null, this.makeURI(BookmarkURL), -1);
} else if (bmtype == "separator") {
curitem = this.bookmarks.insertSeparator(container, -1);
} else {
curitem = this.livemarks.createLivemark(container, BookmarkTitle, null, this.makeURI(BookmarkURL), location);
}else {
curitem = this.bookmarks.insertBookmark(container, this.makeURI(BookmarkURL), location, BookmarkTitle);
}
}
if (curitem) {
this.annoService.setItemAnnotation(curitem, inId, "true", 0, this.annoService.EXPIRE_NEVER);
}
}
}
}
},
addFolder: function(prefix, container, location, inId) {