summaryrefslogtreecommitdiff
path: root/src/components/modals/Modal.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-09 17:04:15 +0300
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:27 +0200
commit0bc393e41c5b238c1d95a49ede3dec45b4ed527e (patch)
tree0698fe17a8f22c1eb771fdad869714414f48df92 /src/components/modals/Modal.js
parent67a771cbb02ec9da3c60704901f3150b46a7262b (diff)
Add action buttons to project rows
Diffstat (limited to 'src/components/modals/Modal.js')
-rw-r--r--src/components/modals/Modal.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/modals/Modal.js b/src/components/modals/Modal.js
index e2d19fcb..bb8fa00f 100644
--- a/src/components/modals/Modal.js
+++ b/src/components/modals/Modal.js
@@ -17,6 +17,8 @@ class Modal extends React.Component {
componentDidMount() {
this.openOrCloseModal();
+
+ window["$"]("#" + this.id).on("hide.bs.modal", this.props.onCancel.bind(this));
}
componentDidUpdate() {