From 86b448369e155b98c0659c3e360f62f70a1cca97 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 15 Jul 2013 19:51:45 +0200 Subject: Use a dialog to send new stories. --- static/js/main.js | 59 +++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 42 insertions(+), 17 deletions(-) (limited to 'static/js') diff --git a/static/js/main.js b/static/js/main.js index e8991ad..b6c36f9 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -229,6 +229,7 @@ var StoryForm = React.createClass({ var headline = this.refs.headline.getDOMNode().value.trim(); var content = this.refs.content.getDOMNode().value.trim(); + $(".myModal").modal('hide'); this.props.onStorySubmit({role: role, necessity: necessity, headline: headline, @@ -243,27 +244,51 @@ var StoryForm = React.createClass({ }), render: function() { return ( -
-
- New story +
+ +
+ ); } }); -- cgit v1.2.3-54-g00ecf