スターアイコンのクリックで表示されるパネルにも「親のタブ」の行を表示するように
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4929 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
2c3b4f3621
commit
4ecc45b1f1
@ -27,7 +27,21 @@ var TreeStyleEditableBookmarkService = {
|
||||
|
||||
init : function()
|
||||
{
|
||||
if (!('gEditItemOverlay' in window) || this.initialized) return;
|
||||
if ('StarUI' in window) {
|
||||
if ('_doShowEditBookmarkPanel' in StarUI) {
|
||||
eval('StarUI._doShowEditBookmarkPanel = '+StarUI._doShowEditBookmarkPanel.toSource().replace(
|
||||
'{',
|
||||
'{ TreeStyleEditableBookmarkService.initUI();'
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
this.initUI();
|
||||
},
|
||||
|
||||
initUI : function()
|
||||
{
|
||||
if (!('gEditItemOverlay' in window) || this.UIInitialized) return;
|
||||
|
||||
var container = document.getElementById('editBookmarkPanelGrid');
|
||||
if (!container) return;
|
||||
@ -37,7 +51,7 @@ var TreeStyleEditableBookmarkService = {
|
||||
range.selectNodeContents(container);
|
||||
range.collapse(false);
|
||||
range.insertNode(range.createContextualFragment(<![CDATA[
|
||||
<row align="center">
|
||||
<row align="center" id="treestyletab-parent-row">
|
||||
<label id="treestyletab-parent-label"
|
||||
control="treestyletab-parent-menulist"/>
|
||||
<menulist id="treestyletab-parent-menulist"
|
||||
@ -57,8 +71,10 @@ var TreeStyleEditableBookmarkService = {
|
||||
|
||||
|
||||
eval('gEditItemOverlay._showHideRows = '+gEditItemOverlay._showHideRows.toSource().replace(
|
||||
'this._element("keywordRow").collapsed',
|
||||
'TreeStyleEditableBookmarkService.parentRow.collapsed = $&'
|
||||
/(\}\)?)$/,
|
||||
<![CDATA[
|
||||
TreeStyleEditableBookmarkService.parentRow.collapsed = this._element('keywordRow').collapsed && this._element('folderRow').collapsed;
|
||||
$1]]>
|
||||
));
|
||||
|
||||
eval('gEditItemOverlay.initPanel = '+gEditItemOverlay.initPanel.toSource().replace(
|
||||
@ -84,9 +100,9 @@ var TreeStyleEditableBookmarkService = {
|
||||
this.instantApply = true;
|
||||
}
|
||||
|
||||
this.initialized = true;
|
||||
this.UIInitialized = true;
|
||||
},
|
||||
initialized : false,
|
||||
UIInitialized : false,
|
||||
|
||||
initParentMenuList : function()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user