Colin Kuskie
33c54b66b6
Fix bug #11469 , multi-allocation slider doesn't work. Make sure that allocMax is set in all cases.
2010-04-06 11:14:53 -07:00
Patrick Donelan
491e06bf7d
Fixed Suvery Number js validation
...
Attaching the number validation code to onkeydown was very problematic.
Changing to onblur is much cleaner, and probably nicer for the user.
This commit also fixes the problem that Number questions without a 'step'
set would not be checked for 'required'-ness.
2009-08-24 08:31:02 +00:00
Patrick Donelan
d820d43760
Fixed #10520 - Survey responses get confused if survey structure modified
...
Survey responses are now revision-aware.
The survey structure gets revisioned automatically as necessary when changes
are made on the Edit Survey screen (as necessary ~~ a response exists
for the current revision)
2009-06-16 06:25:38 +00:00
Kaleb Murphy
987a78fe5c
Final correction on extras path error for administersurvey.js. surveyedit.css should be placed in a snippet using Extras macro.
2009-06-08 18:54:27 +00:00
Kaleb Murphy
34429aec62
Changed survey .js/css files to remove hardcoded absolute extras paths.
2009-06-08 16:58:44 +00:00
Patrick Donelan
d671ccbc63
Fixed Survey Slider question type so that it works when defaults
...
are used (max,min,step all undefined)
2009-06-02 01:48:59 +00:00
Patrick Donelan
0ad26a1921
Survey: more bug fixes
...
Fixed invalid calendar markup so that Date question type works in IE
Minor tweaks to ResponseJSON for more robustness
Fixed Number question type javascript
2009-05-24 09:59:43 +00:00
Patrick Donelan
3a25e806c6
Survey bug fixes
...
Fixed bugs in the handling of logical sections,
creating of responses and counting of responses.
Added in a bunch of new tests.
Jslinting of all survye js files
2009-05-23 09:54:03 +00:00
Patrick Donelan
4332b57ba2
Made Survey date picker more i18n-generic until we support proper i18n
2009-05-12 00:21:21 +00:00
Patrick Donelan
cf98c81461
Fixed Survey's handling of multi-answer questions (e.g. maxAnswers != 1)
...
Now stores all supplied answers to multi-answer question as arrayref
Variable [[var]] text replacement converts to comma-separated list
Expression Engine's value() returns appropriate value depending on context
Expression Engine's score() does sum of multi-answers, as you would expect
Updated related i18n & hover-help, and tests
Cleaned up survey js somewhat
2009-05-08 08:00:04 +00:00
Patrick Donelan
494efe1cf1
Added Country question type to Survey
...
Refactored WebGUI::Form::Country so that it can be used to return a list of countries
2009-05-06 02:38:26 +00:00
Patrick Donelan
aa045b7abc
Improved Survey template so that bottom of page/submit button can be
...
skinned when questions don't validate. Added js to scroll page to
highest invalid question (e.g. lowest y-coord)
2009-04-28 00:37:51 +00:00
Kaleb Murphy
daf5294c27
Removed commented code
2009-04-22 22:09:52 +00:00
Kaleb Murphy
b238510c7f
administer.js now has a much improved handling of the slider algorithm, plus some refactored code. Users will not notice anything.
2009-04-22 22:01:48 +00:00
Patrick Donelan
c3ea6d4683
Added Survey back button, with option to turn it on/off, tests, and i18n
...
Noticed that some Survey tests are broken, will fix tomorrow
2009-04-21 07:12:07 +00:00
Patrick Donelan
9c228e2c83
Improved Survey "Year Month" validation
2009-04-21 03:32:27 +00:00
Kaleb Murphy
2b8306a635
Minor change to Survey number type. Fixed duck type addition/concat confusion, and defaulted answer to empty string.
2009-04-20 02:24:53 +00:00
Kaleb Murphy
724675c71c
Survey new number type, if slider constraints are left blank, no constraints are applied.
2009-04-19 01:40:49 +00:00
Kaleb Murphy
9df02396b7
added Survey Number type. Text number entry that uses slider restrictions as constraints (server and client side). You can also use the arrow keys
...
to increment or decrement the number enter.
2009-04-18 22:23:35 +00:00
Kaleb Murphy
caffe2751a
Preliminary check in for new Survey text number type and validation.
2009-04-17 17:08:42 +00:00
Kaleb Murphy
c6860a5d30
cleaned up the code
2009-04-09 02:32:50 +00:00
Kaleb Murphy
af00b7a881
Survey summaries now use YUI datatables and charts for extra bling.
2009-04-08 20:03:41 +00:00
Kaleb Murphy
a6a70a46e0
Summaries added to the survey
2009-04-05 19:33:46 +00:00
Kaleb Murphy
cafd31f87a
New Question type. Just a Month-Year type with a month drop down and a 4 digit year text box.
2009-03-22 18:18:38 +00:00
Kaleb Murphy
41436a6d21
removed traces
2009-03-19 16:00:05 +00:00
Kaleb Murphy
077d38c0b4
Survey slider types improved and corrected. Single slider type now ingores "required".
2009-03-17 18:07:46 +00:00
Kaleb Murphy
b856cddc56
removed trace statements
2009-03-16 16:02:31 +00:00
Kaleb Murphy
cc11480d6d
Added Edit Survey loading mask to reduce loading confusing on slow connections.
2009-03-16 15:59:20 +00:00
Kaleb Murphy
4ecc0b7679
removing traces
2009-03-09 17:23:33 +00:00
Kaleb Murphy
0db9be4512
Added goto to sections and questions. Order of precedence is answer, question, then section.
2009-03-09 17:23:06 +00:00
Patrick Donelan
c58a6ab2fb
Removed hard-coding of multi-choice bundles from administersurvey.js
...
Refactored long, nested if-else
2009-02-16 01:22:04 +00:00
Yung Han Khoe
46cca4fae1
rfe 9200: Survey Text/TextArea handling
2009-01-15 14:17:40 +00:00
Patrick Donelan
42ce45f825
More code from flux branch
2009-01-14 06:14:52 +00:00
Patrick Donelan
8a4f26215a
Handle Survey qs without answers even more gracefully (e.g. by not
...
breaking)
2009-01-09 03:37:32 +00:00
Patrick Donelan
11ff75f778
Gracefully handle Survey question with no answers
2009-01-09 03:27:17 +00:00
Patrick Donelan
ec674dd5f4
Flagging of invalid Survey fields now uses CSS classes instead of <font> tags
...
(for skinnability)
2008-12-04 03:37:59 +00:00
Patrick Donelan
5083085abb
Fixed some curly Survey js type casting bugs so that
...
questionsOnSectionPage, everyPageText and everyPageTitle work as
expected.
2008-12-04 01:19:50 +00:00
Patrick Donelan
31dec565b7
Refactored JS to use module pattern for proper encapsulation
...
Extensive jslinting to improve cross-browser support
Added some debugging statements
Fixed redirection to exitUrl when survey complete
Added www_deleteResponses
Added security restrictions on www_ methods
2008-11-25 06:33:55 +00:00
Patrick Donelan
cf96ad484a
Added missing groupToEditSurvey Survey table field to upgrade script
...
Reduced YUI footprint (load -min and combined js/css files where possible)
Updated surveyQuestion template and associated js/css to not use divs with ids that clash with wg page header and footer
2008-11-21 06:23:28 +00:00
Graham Knop
48b4ba1fc8
adding survey back in
2008-11-12 03:24:49 +00:00
Graham Knop
151e705286
Backing out Survey for now
2008-11-12 02:40:27 +00:00
Kaleb Murphy
a907495f0b
administersurvey.js small updates merged
2008-10-27 13:50:52 +00:00
Patrick Donelan
a4afde5786
Changed console.log() calls to YAHOO.log()
2008-10-16 02:52:22 +00:00
Kaleb Murphy
c2fc74ae85
Need to finish the template packages, reports, fix up a small branching issue, copying, and an upgrade path.
2008-10-14 03:07:53 +00:00
Kaleb Murphy
d7f38c4e37
Removed auto-submit on 1 MC question per page. Added scroll to top of page on submit.
2008-05-21 15:58:25 +00:00
Kaleb Murphy
355decc7c3
Added warning message on required slider allocates for how much left is required. Also removed slider animation as there appears to be a motion bug where the bug can slide further than asked for.
2008-05-16 21:42:52 +00:00
Kaleb Murphy
ec8d1de4f8
Slider write ins now more accurate
2008-05-14 19:16:14 +00:00
Kaleb Murphy
9bad426c49
Added 500ms delay during 1 button page clicks.
2008-05-12 13:58:52 +00:00
Kaleb Murphy
e3bef2b5d7
IE problems apparently resolved, and slider and multi-slider allocate accuracy made bullet-proof.
2008-05-08 20:06:13 +00:00
Kaleb Murphy
d6cfcd4381
Added IE7 compat in administersurvey.js for class changes.
2008-05-08 14:21:03 +00:00