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:
parent
26166ed663
commit
4adf46bd77
@ -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") {
|
|
||||||
curitem = this.bookmarks.insertSeparator(container, -1);
|
|
||||||
}else {
|
}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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user