aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/views
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-09 15:56:22 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-09 15:56:22 +0200
commit194ea21fa5b3a4ea7eb28aa05489308ca20a6293 (patch)
tree5726a30e851d63a780b359a69ddf6c5c04e83792 /views
parent.. (diff)
downloadDivid-194ea21fa5b3a4ea7eb28aa05489308ca20a6293.tar.gz
testing
Diffstat (limited to 'views')
-rw-r--r--views/projectPost.ejs15
1 files changed, 12 insertions, 3 deletions
diff --git a/views/projectPost.ejs b/views/projectPost.ejs
index 2f63fc5..824db54 100644
--- a/views/projectPost.ejs
+++ b/views/projectPost.ejs
@@ -58,9 +58,11 @@
<div class="control-group">
<label for="split_between" class="control-label">Delt på</label>
<div class="controls">
- <select multiple="multiple">
- <option value="">Dennis</option>
- <option value="">Kurt</option>
+
+ <span class="selectAll">Select all</span>
+ <select name="participants[]" id="participants" multiple="multiple">
+ <option value="5180e11b0074a8b029000001" selected="selected">Dennis</option>
+ <option value="51814b792c94cc5346000001" selected="selected">Kurt</option>
</select>
</div>
</div>
@@ -98,5 +100,12 @@
<% include footer %>
+ <script>
+ $(".selectAll").click(function() {
+ $('#participants').children().attr('selected','selected');
+ //$(this).parent().find('option').attr('selected','selected');
+ });
+ </script>
+
</body>
</html>