Commit graph

671 commits

Author SHA1 Message Date
jelhan
1f39409f66 avoid globale namespace 2015-07-27 20:56:52 +02:00
jelhan
f9eaa10ee1 refactor "participate in poll"-tests as acceptance tests using pretender instead of dummy data 2015-07-27 20:28:00 +02:00
jelhan
2670a07d04 Merge branch 'master' into pretender 2015-07-27 19:39:34 +02:00
jelhan
badc99d978 directory handle resource should be closed 2015-07-27 17:58:06 +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
f313bd29a2 v0.3.0 2015-07-26 16:42:39 +02:00
jelhan
2a3acf31ce Fix: webshim inputs were not updated 2015-07-23 23:49:23 +02:00
jelhan
c7440fd0b9 pretender... 2015-07-22 11:52:22 +02:00
jelhan
ae1a846f26 Fix: sort function must return positive or negative integer 2015-07-19 21:07:15 +02:00
jelhan
5181d45fc0 added some tests 2015-07-19 20:55:20 +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
6e9fbec6e7 Update: ember 1.12 and ember-cli 0.2.7 2015-07-02 15:54:09 +02:00
jelhan
fe0cd5fc82 Update: ember 1.12 and ember-cli 0.2.7 2015-07-02 15:53:02 +02:00
jelhan
34330cb730 remove version from package.json; having version as git tag is enough 2015-07-02 15:39:14 +02:00
jelhan
eb24c47e6a CSP header is applied on a per-page-basis and for AJAX response applied by the context that performed the fetch 2015-07-02 12:53:36 +02:00
jelhan
d48395d059 HSTS header should be set on server side; not by application 2015-07-02 12:34:03 +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
90a7e6dbe1 Fix test if it is run multiple times (more than one user is present) 2015-06-20 18:42:28 +02:00
jelhan
5cce0a236d Fix: freetext answer where broken by caba42a853
added test to not let it happen again
2015-06-20 18:33:51 +02:00
jelhan
7f1aa33e95 should not be in repository 2015-06-20 18:11:49 +02:00
jelhan
b627affb99 Fix: undefined property error caused by not removed event listener 2015-06-20 18:00:13 +02:00
jelhan
3929460595 restructering tests 2015-06-11 10:53:22 +02:00
jelhan
3530098982 Merge pull request #72 from j0rgeSD/master
Update translations.js
2015-06-09 11:08:33 +02:00
jelhan
866e649640 prevent caching of AJAX requests in IE 2015-06-08 19:32:58 +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
95e4731595 update README 2015-04-04 11:06:52 +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
422af9df31 updated readme 2015-04-04 01:52:56 +02:00
jelhan
9024322367 fix 404 in test 2015-04-04 01:39:28 +02:00
jelhan
b84f09a906 fix production build 2015-04-04 01:33:42 +02:00
jelhan
83cce0d083 use testem proxies configuration 2015-04-04 01:13:27 +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
0a4b3cd64a got lost 2015-04-03 12:49:54 +02:00
jelhan
6a3bf398c2 Fix: div closed to early; box should be part of #poll 2015-04-02 21:23:06 +02:00
jelhan
48262b29f3 update ember-cli-less 2015-04-02 21:16:53 +02:00
jelhan
b2db75221a fix 2015-04-02 21:16:31 +02:00