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. --- scrumli.lisp | 4 ++-- static/css/scrumli.css | 5 +++++ static/js/main.js | 59 +++++++++++++++++++++++++++++++++++--------------- templates/scrumli.tmpl | 10 ++++++++- 4 files changed, 58 insertions(+), 20 deletions(-) diff --git a/scrumli.lisp b/scrumli.lisp index 1cf3deb..22ce5d7 100644 --- a/scrumli.lisp +++ b/scrumli.lisp @@ -59,8 +59,8 @@ :csss ,(list *scrumli-bootstrap-css-location* *scrumli-font-awesome-css-location* (genurl 'scrumli-css)) - :jss ,(list *scrumli-bootstrap-js-location* - *scrumli-jquery-js-location* + :jss ,(list *scrumli-jquery-js-location* + *scrumli-bootstrap-js-location* *scrumli-react-js-location* *scrumli-jsxtransformer-js-location*) :username ,(hunchentoot:session-value :username) 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 +
+ +
+ ); } }); diff --git a/templates/scrumli.tmpl b/templates/scrumli.tmpl index 03832e2..1deb32c 100644 --- a/templates/scrumli.tmpl +++ b/templates/scrumli.tmpl @@ -34,7 +34,15 @@
-

Backlog

+

+ + Backlog +

+ +
-- cgit v1.2.3-54-g00ecf