summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorAsaad Mahmood <asaad@spinpunch.com>2015-11-30 22:39:01 +0500
committerAsaad Mahmood <asaad@spinpunch.com>2015-11-30 22:39:01 +0500
commitd3fd017e69943adf364a0459d3c28179a97835ff (patch)
tree942cb9cee22159df03b43f396d39a7f420e85f8d /web/react
parentbe582b4fe3efd9b35a7df86a6c270ddb5b3bb409 (diff)
downloadchat-d3fd017e69943adf364a0459d3c28179a97835ff.tar.gz
chat-d3fd017e69943adf364a0459d3c28179a97835ff.tar.bz2
chat-d3fd017e69943adf364a0459d3c28179a97835ff.zip
Improving image modal and removing console log
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/sidebar.jsx1
-rw-r--r--web/react/components/view_image.jsx3
2 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx
index 73733b6c1..b4c037183 100644
--- a/web/react/components/sidebar.jsx
+++ b/web/react/components/sidebar.jsx
@@ -203,7 +203,6 @@ export default class Sidebar extends React.Component {
windowWidth: Utils.windowWidth(),
windowHeight: Utils.windowHeight()
});
- console.log('sad');
}
updateScrollbar() {
}
diff --git a/web/react/components/view_image.jsx b/web/react/components/view_image.jsx
index 50befb41f..2b505607e 100644
--- a/web/react/components/view_image.jsx
+++ b/web/react/components/view_image.jsx
@@ -424,11 +424,12 @@ export default class ViewImageModal extends React.Component {
>
<div
className={'image-wrapper ' + bgClass}
- onClick={(e) => e.stopPropagation()}
+ onClick={this.props.onModalDismissed}
>
<div
onMouseEnter={this.onMouseEnterImage}
onMouseLeave={this.onMouseLeaveImage}
+ onClick={(e) => e.stopPropagation()}
>
<div
className={closeButtonClass}