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/css/scrumli.css | 5 +++++ static/js/main.js | 59 +++++++++++++++++++++++++++++++++++--------------- 2 files changed, 47 insertions(+), 17 deletions(-) (limited to 'static') diff --git a/static/css/scrumli.css b/static/css/scrumli.css index 97ada10..7399c15 100644 --- a/static/css/scrumli.css +++ b/static/css/scrumli.css @@ -1,3 +1,8 @@ .clickable { cursor: pointer; } + +button.nothing { + background-color: inherit; + border: none; +} 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