Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
saidaipparla committed Oct 14, 2016
1 parent b4a83c7 commit c4ee195
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion web/client/components/misc/Dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const Dialog = React.createClass({
backgroundStyle: React.PropTypes.object,
className: React.PropTypes.string,
maskLoading: React.PropTypes.bool,
containerClassName: React.PropTypes.string,
headerClassName: React.PropTypes.string,
bodyClassName: React.PropTypes.string,
footerClassName: React.PropTypes.string,
Expand All @@ -38,6 +39,7 @@ const Dialog = React.createClass({
start: {x: 0, y: 0},
className: "modal-dialog modal-content",
maskLoading: false,
containerClassName: "",
headerClassName: "modal-header",
bodyClassName: "modal-body",
footerClassName: "modal-footer",
Expand Down Expand Up @@ -84,7 +86,7 @@ const Dialog = React.createClass({
</Draggable>);
let containerStyle = assign({}, this.props.style, this.props.backgroundStyle);
return this.props.modal ?
(<div onClick={this.props.onClickOut} style={containerStyle} className="fade in modal catalog_window" role="dialog">
(<div onClick={this.props.onClickOut} style={containerStyle} className={"fade in modal " + this.props.containerClassName} role="dialog">
<div onClick={(evt)=> {evt.preventDefault(); evt.stopPropagation(); }} className="modal-dialog" style={{background: "transparent"}}>
{dialog}
</div></div>) :
Expand Down
2 changes: 1 addition & 1 deletion web/client/plugins/MetadataExplorer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const MetadataExplorerComponent = React.createClass({
{panel}
</Panel>);
}
return (<Dialog modal id="mapstore-catalog-panel" style={assign({}, this.props.style, {display: "block" })}>
return (<Dialog containerClassName="catalog_window" modal id="mapstore-catalog-panel" style={assign({}, this.props.style, {display: "block" })}>
<span role="header"><span className="metadataexplorer-panel-title"><Message msgId="catalog.title"/></span><button onClick={this.props.toggleControl} className="print-panel-close close">{this.props.closeGlyph ? <Glyphicon glyph={this.props.closeGlyph}/> : <span>×</span>}</button></span>
{panel}
</Dialog>);
Expand Down

0 comments on commit c4ee195

Please sign in to comment.