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); BookmarkTitle = this.getString(prefix + "BookmarkTitle" + i);
if (BookmarkTitle) { if (BookmarkTitle) {
BookmarkURL = this.getString(prefix + "BookmarkURL" + i); BookmarkURL = this.getString(prefix + "BookmarkURL" + i);
if (BookmarkURL) {
var bmtype = this.getString(prefix + "BookmarkType" + i); var bmtype = this.getString(prefix + "BookmarkType" + i);
var curitem; var curitem;
if (bmtype == "separator") {
curitem = this.bookmarks.insertSeparator(container, location);
} else if (BookmarkURL) {
if (bmtype == "live") { if (bmtype == "live") {
curitem = this.livemarks.createLivemark(container, BookmarkTitle, null, this.makeURI(BookmarkURL), -1); curitem = this.livemarks.createLivemark(container, BookmarkTitle, null, this.makeURI(BookmarkURL), location);
} else if (bmtype == "separator") { }else {
curitem = this.bookmarks.insertSeparator(container, -1);
} else {
curitem = this.bookmarks.insertBookmark(container, this.makeURI(BookmarkURL), location, BookmarkTitle); curitem = this.bookmarks.insertBookmark(container, this.makeURI(BookmarkURL), location, BookmarkTitle);
} }
}
if (curitem) { if (curitem) {
this.annoService.setItemAnnotation(curitem, inId, "true", 0, this.annoService.EXPIRE_NEVER); this.annoService.setItemAnnotation(curitem, inId, "true", 0, this.annoService.EXPIRE_NEVER);
} }
} }
} }
}
}, },
addFolder: function(prefix, container, location, inId) { addFolder: function(prefix, container, location, inId) {