Commit 58dec58bc4f073e602833effc8d9f4884c413fee

Implemented environment saving in notes.
evently/profile/profileReady/mustache.html
(7 / 3)
  
44 </label>
55 <textarea name="note" id="note" cols="80" rows="6"></textarea>
66 <br />
7 <label for="tags">
8 Tags:
7 <label for="env">
8 Env:
99 </label>
10 <input type="text" id="tags" name="tags" size="60" />
10 <select name="env" id="env">
11 <option value="koti">koti</option>
12 <option value="työ">työ</option>
13 <option value="känny">känny</option>
14 </select> (selection will be saved as cookie/similar/local memory)
1115 <br />
1216 <button id="save">Save</button>
1317</form>
evently/profile/profileReady/selectors/form/submit.js
(1 / 1)
  
33 var fdoc = new Object();
44 fdoc.created_at = new Date();
55 fdoc.note = $("#note").val();
6 fdoc.tags = $("#tags").val().split(" ");
6 fdoc.env = $("#env").val();
77 $$(this).app.db.saveDoc(fdoc, {
88 success : function() {
99 form[0].reset();