Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit dd09a05

Browse files
committed
Fix infoPanel action bars initialization when in editor mode. Fix #1145
1 parent 6da3f27 commit dd09a05

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/src/plugins/gui.ajax/res/js/ui/prototype/class.InfoPanel.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,15 @@ Class.create("InfoPanel", AjxpPane, {
8989
document.stopObserving("ajaxplorer:user_logged", this.userLogHandler );
9090
this.htmlElement.up('div.dialogBox').setStyle({width:Math.min(450, document.viewport.getWidth())+'px'});
9191
this.htmlElement.up('div.dialogContent').setStyle({padding:0});
92-
this.htmlElement.down('#ip_content_info_panel').setStyle({position:"relative", top:0, left:0, width:'100%', height: Math.min(450, document.viewport.getHeight()-28)+'px', overflow:'auto'});
92+
this.contentContainer = this.htmlElement.down('#ip_content_info_panel');
93+
this.contentContainer.setStyle({position:"relative", top:0, left:0, width:'100%', height: Math.min(450, document.viewport.getHeight()-28)+'px', overflow:'auto'});
9394
try{
9495
this.htmlElement.down('#ip_content_modal_action_form').remove();
9596
this.htmlElement.down('#ip_scroller_modal_action_form').remove();
9697
}catch (e){}
9798
modal.refreshDialogPosition();
99+
this.options.skipActions = true;
100+
this.addActions("unique");
98101
},
99102

100103
/**
@@ -148,7 +151,7 @@ Class.create("InfoPanel", AjxpPane, {
148151
update : function(objectOrEvent){
149152
if(!this.htmlElement) return;
150153
var passedNode;
151-
if(objectOrEvent.__className && objectOrEvent.__className == "AjxpNode"){
154+
if(objectOrEvent instanceof AjxpNode){
152155
passedNode = objectOrEvent;
153156
}
154157
this.insertedTemplates = $A();

0 commit comments

Comments
 (0)