Commit graph

87 commits

Author SHA1 Message Date
jelhan
243ed3b12a model fragments for user selections (currently same as answers) 2015-10-25 15:32:42 +01:00
jelhan
d020f67e90 model fragments for options 2015-10-25 15:29:47 +01:00
jelhan
dd1a8436e0 model fragments for answers 2015-10-25 15:29:47 +01:00
jelhan
a8a10ad42a Fixes #74 and some other validation issues 2015-10-12 11:42:51 +02:00
jelhan
0ad6026715 includePlainOnCreate serializer option and use it for serverExpirationDate 2015-08-23 16:13:52 +02:00
jelhan
1136af5b74 remove deprecation: COMPUTED PROPERTIES WITH A SHARED GETTER AND SETTER
http://emberjs.com/deprecations/v1.x/#toc_computed-properties-with-a-shared-getter-and-setter
2015-08-19 22:24:20 +02:00
jelhan
398453c1e4 do encryption / decryption in serializer
before it was done as computed properties of model

accessing encryption key in serializer is done via global application var.
this should be removed in long-term
2015-08-19 22:00:01 +02:00
jelhan
0317c7c0c8 use ember-cli-build-info 2.0 to fix #65 2015-08-19 13:42:38 +02:00
jelhan
3e000f146d even more user-friendly evaluation 2015-08-19 13:27:14 +02:00
jelhan
839695b224 Merge branch 'master' into evaluation 2015-08-19 11:14:08 +02:00
jelhan
450a78255d expiration date should also be encrypted on get;
therefore we have to duplicate it in store:
* encrypted for to serve for clients (encryptedExpirationDate)
* unencrypted for server to check if it's exceeded (serverExpirationDate)
serverExpirationDate should never be send to client
2015-08-18 21:53:52 +02:00
jelhan
6f7148a86f Merge branch 'master' into evaluation
Conflicts:
	app/controllers/poll.js
2015-08-01 22:22:07 +02:00
jelhan
eb798a3c4c use fixed version of ember-cli-build-info 2015-07-28 17:22:31 +02:00
jelhan
5a9f58f451 fix jshint warning 2015-07-27 17:57:50 +02:00
jelhan
3690a60496 [FEATURE] add expiration date for polls 2015-07-26 19:41:59 +02:00
jelhan
2a3acf31ce Fix: webshim inputs were not updated 2015-07-23 23:49:23 +02:00
jelhan
ae1a846f26 Fix: sort function must return positive or negative integer 2015-07-19 21:07:15 +02:00
jelhan
a59130633e Fix sort function: title is a string now 2015-07-19 20:12:51 +02:00
jelhan
6ded3e1f4e do not care about timezones if it's not necessary 2015-07-19 20:00:07 +02:00
jelhan
0be7babb26 timezone of user created poll should only be stored if it's necessary 2015-07-19 19:49:40 +02:00
jelhan
d651d869fb if poll is about date with times we shouldn't set options to dates without times specified 2015-07-19 19:39:48 +02:00
jelhan
5fa425443f do not use ISO 8601 date + time format if it's only about dates 2015-07-19 19:33:41 +02:00
jelhan
25eedaef3c Some browsers (especially old IE) does not support toISOString() for Date objects,
therefore using momentJS to provide toISOString() function
2015-07-19 19:20:31 +02:00
jelhan
9a29b07dad explicit convert Date objects to ISO Strings
before it was done implicit by JSON.stringify() on encryption since JSON does not support Date type
2015-07-18 21:00:28 +02:00
jelhan
ab4f88dd7f Fix: handling of different timezones
There were some timezone issues especially concerning daylight saving time (DST).
We should not rely on timezone offset since this will change due to DST.
Instead determine the users timezone (using jsTimezoneDetect therefore) and
then using this via moment-timezone.

This commit changes poll model. It drops timezoneOffset and adds timezone as a new property.
It's not tested yet against polls created before without timezone property. This has to be done before merge.

Also we should consider using ember-moment template helpers instead of our own formatted-date helper.
2015-07-15 16:20:24 +02:00
jelhan
2839b09ad9 more user-friendly evaluation 2015-07-15 14:24:57 +02:00
jelhan
612086c73c intend by 2 spaces 2015-07-07 11:52:46 +02:00
jelhan
67cc41973f Ember.ObjectController is deprecated since ember 1.11
Ember.ObjectController was proxying model properties to controller. Ember.Controller which should be used is not.
Therefore we have to define if it's a property of controller or model.

Also added two more tests:
* anonymous participation
* do not force an answer for all options
2015-07-01 16:21:18 +02:00
jelhan
8c2a17df39 Fix: date without times were not sorted 2015-06-24 02:14:14 +02:00
jelhan
d6cf7efa3c add version information to
* build (as html meta tag)
* stored polls and users

Closes #65
2015-06-20 19:04:19 +02:00
jelhan
f5b8546247 fix undefined error 2015-04-07 13:17:45 +02:00
jelhan
30e9b22797 Fix undefined if all dates are removed 2015-04-07 12:38:13 +02:00
jelhan
10f7b59986 jshint 2015-04-04 02:45:22 +02:00
jelhan
b1dc1b5bac use ember-cli-boostrap-datepicker 2015-04-04 02:43:59 +02:00
jelhan
ed8a102b3d causes "unknown mixin" error in tests
doesn't seem to be necessary anymore
2015-04-04 01:09:25 +02:00
jelhan
d20aef363b Revert "add version to saved poll/user"
This reverts commit 3808de42ca.
2015-04-02 13:30:00 +02:00
jelhan
72bdb5c788 fix: dates should be in correct order
wasn't if they are defined with times

fixes #68
2015-01-26 18:17:29 +01:00
jelhan
3808de42ca add version to saved poll/user 2015-01-24 14:33:02 +01:00
jelhan
f0a09d9aee handle connection issues on user save:
* show error message (modal)
* provide retry button

fixes #66
2015-01-21 01:30:14 +01:00
jelhan
1e2dbd95e9 move language switch to application controller 2015-01-19 13:56:03 +01:00
jelhan
48ed039788 fixes top scrollbar resize issues
fixes #63
2015-01-16 14:12:34 +01:00
jelhan
7ba00a1b31 just change values instead of regenerating times array on copy first line action
fixes #37
2014-11-25 16:37:56 +01:00
jelhan
538a486da7 removed files from merge 2014-11-25 16:12:46 +01:00
jelhan
791c612e2d Merge branch 'feat/backbutton-on-create' into feat/ember-cli
Conflicts:
	app/controllers/create/options-datetime.js
	app/controllers/create/options.js
	app/views/create/options-datetime.js
2014-11-21 12:38:32 +01:00
jelhan
016ccfc31c rewritten option and input field relationship
keep inputs while setting up poll and update options based on inputs by observer
2014-11-21 12:24:24 +01:00
jelhan
3e85382cf8 ember-validations as ember-addons 2014-11-02 16:55:10 +01:00
jelhan
7dec3c47ca migration to ember-cli 2014-11-01 18:00:46 +01:00
jelhan
b9e03542e0 Merge branch 'master' into feat/ember-cli 2014-11-01 15:29:09 +01:00
jelhan
2b3e4f2fa3 improve translations 2014-11-01 15:28:57 +01:00
jelhan
7a241bd311 first steps to ember-cli 2014-10-30 21:44:22 +01:00