Eric Fischer
5bc6b31e29
eslint --fix
2017-12-08 14:38:41 -05:00
cahrens
aa8d222678
New example jsinput problem.
...
TNL-5893
2017-01-05 16:09:22 -05:00
cahrens
156b43ec0f
Allow passing through title to iFrame.
...
Also changes section to div.
TNL-6044
2016-12-05 12:53:57 -05:00
Brian Jacobel
163ff84699
Run eslint autofixer on /common
2016-08-08 15:59:18 -04:00
Brian Jacobel
a32fd27d60
Replace JSHint ignore directives with ESLint ones
2016-08-04 16:22:59 -04:00
muzaffaryousaf
9cbfea2edd
Js test fixes for common, common-requirejs, xmodule.
2016-04-22 19:09:31 +05:00
Adam Palay
d3a467d366
Only add event listener if it hasn't been added yet
2016-03-23 00:00:27 +05:00
Adam Palay
c63dcf0dfe
render mathjax in svg by default (TNL-4145)
...
mathjax preview should be inline by default
2016-02-24 12:51:30 -05:00
Diana Huang
ea2a0cab27
Merge pull request #11069 from OmarIthawi/edraak/oithawi/draggable-capa-rtl
...
Fixup: draggable capa icons disappear in RTL layout
2016-01-20 13:32:56 -05:00
Toby Lawrence
c71f0fa2ce
Adding optimized images in batches [12/19]
2016-01-13 20:38:41 -05:00
Toby Lawrence
0cdaa975fc
Adding optimized images in batches [11/19]
2016-01-13 20:38:40 -05:00
Toby Lawrence
7efd8773fb
Adding optimized images in batches [10/19]
2016-01-13 20:38:40 -05:00
Toby Lawrence
451b0a9c66
Revert "Crush down images."
...
This reverts commit 8402be3b20 .
2016-01-13 19:12:13 -05:00
Toby Lawrence
8402be3b20
Crush down images.
...
Ran these suckers through ImageOptim, which crunched 'em down real nice.
2016-01-13 18:29:00 -05:00
Calen Pennington
dade7f49b0
Shrink images using trimage
...
.../gwt/chrome/images/ie6/vborder_blue_shadow.png | Bin 144 -> 130 bytes
.../gwt/chrome/images/ie6/vborder_gray_shadow.png | Bin 148 -> 131 bytes
.../capa/jsme/gwt/chrome/images/splitPanelThumb.png | Bin 308 -> 220 bytes
.../gwt/chrome/images/valuespinner/bg_textbox.png | Bin 193 -> 87 bytes
.../static/js/capa/jsme/gwt/chrome/images/vborder.png | Bin 188 -> 125 bytes
.../js/capa/jsme/gwt/chrome/images/vborder_ie6.png | Bin 201 -> 110 bytes
.../js/capa/jsmolcalc/gwt/clean/images/circles.png | Bin 1492 -> 974 bytes
.../capa/jsmolcalc/gwt/clean/images/circles_ie6.png | Bin 432 -> 358 bytes
.../js/capa/jsmolcalc/gwt/clean/images/corner.png | Bin 1140 -> 709 bytes
.../js/capa/jsmolcalc/gwt/clean/images/corner_ie6.png | Bin 412 -> 328 bytes
.../js/capa/jsmolcalc/gwt/clean/images/hborder.png | Bin 1995 -> 1205 bytes
.../capa/jsmolcalc/gwt/clean/images/hborder_ie6.png | Bin 706 -> 607 bytes
.../js/capa/jsmolcalc/gwt/clean/images/thumb_horz.png | Bin 222 -> 113 bytes
.../jsmolcalc/gwt/clean/images/thumb_vertical.png | Bin 231 -> 119 bytes
.../js/capa/jsmolcalc/gwt/clean/images/vborder.png | Bin 298 -> 182 bytes
.../capa/jsmolcalc/gwt/clean/images/vborder_ie6.png | Bin 189 -> 136 bytes
.../js/vendor/markitup/sets/wiki/images/clean.png | Bin 667 -> 544 bytes
.../vendor/markitup/sets/wiki/images/list-bullet.png | Bin 344 -> 312 bytes
.../vendor/markitup/sets/wiki/images/list-numeric.png | Bin 357 -> 319 bytes
.../js/vendor/markitup/sets/wiki/images/preview.png | Bin 537 -> 536 bytes
.../js/vendor/markitup/skins/simple/images/handle.png | Bin 258 -> 130 bytes
.../js/vendor/markitup/skins/simple/images/menu.png | Bin 27151 -> 169 bytes
.../vendor/markitup/skins/simple/images/submenu.png | Bin 240 -> 170 bytes
common/static/js/vendor/ova/catch/img/closeIcon.png | Bin 1114 -> 550 bytes
.../static/js/vendor/ova/catch/img/expandableIcon.png | Bin 1279 -> 621 bytes
25 files changed, 0 insertions(+), 0 deletions(-)
2016-01-07 10:48:38 -05:00
Calen Pennington
9a7443bfdb
Shrink images using trimage
...
common/static/js/capa/genex/images/thumb_horz.png | Bin 222 -> 113 bytes
common/static/js/capa/genex/images/thumb_vertical.png | Bin 231 -> 119 bytes
common/static/js/capa/genex/images/vborder.png | Bin 298 -> 182 bytes
common/static/js/capa/genex/images/vborder_ie6.png | Bin 189 -> 136 bytes
.../jsme/40BAF81124143A595056A9CCA0E9DBBA.cache.png | Bin 2890 -> 2795 bytes
.../images/button/menu-button-arrow-disabled.png | Bin 173 -> 109 bytes
.../gwt/chrome/images/button/menu-button-arrow.png | Bin 173 -> 109 bytes
.../images/button/split-button-arrow-active.png | Bin 280 -> 222 bytes
.../images/button/split-button-arrow-disabled.png | Bin 185 -> 125 bytes
.../chrome/images/button/split-button-arrow-focus.png | Bin 185 -> 125 bytes
.../chrome/images/button/split-button-arrow-hover.png | Bin 185 -> 125 bytes
.../gwt/chrome/images/button/split-button-arrow.png | Bin 185 -> 125 bytes
.../chrome/images/combobox/arrow-down-disabled.png | Bin 170 -> 104 bytes
.../jsme/gwt/chrome/images/combobox/arrow-down.png | Bin 170 -> 104 bytes
.../gwt/chrome/images/combobox/ellipsis-disabled.png | Bin 165 -> 108 bytes
.../capa/jsme/gwt/chrome/images/combobox/ellipsis.png | Bin 166 -> 100 bytes
.../static/js/capa/jsme/gwt/chrome/images/corner.png | Bin 1181 -> 750 bytes
.../js/capa/jsme/gwt/chrome/images/corner_ie6.png | Bin 397 -> 314 bytes
.../jsme/gwt/chrome/images/glasspanel/blue_ridge.png | Bin 263 -> 96 bytes
.../static/js/capa/jsme/gwt/chrome/images/hborder.png | Bin 1591 -> 808 bytes
.../js/capa/jsme/gwt/chrome/images/hborder_ie6.png | Bin 970 -> 815 bytes
.../gwt/chrome/images/ie6/corner_dialog_topleft.png | Bin 213 -> 162 bytes
.../gwt/chrome/images/ie6/corner_dialog_topright.png | Bin 258 -> 226 bytes
.../gwt/chrome/images/ie6/hborder_blue_shadow.png | Bin 150 -> 133 bytes
.../gwt/chrome/images/ie6/hborder_gray_shadow.png | Bin 153 -> 136 bytes
25 files changed, 0 insertions(+), 0 deletions(-)
2016-01-07 10:48:36 -05:00
Calen Pennington
ed12c61dd0
Shrink images using trimage
...
.../static/images/capa/vsepr/T-shaped-3D-balls.png | Bin 57074 -> 53926 bytes
.../images/capa/vsepr/Tetrahedral-3D-balls.png | Bin 53631 -> 48796 bytes
.../static/images/capa/vsepr/Trigonal-3D-balls.png | Bin 56071 -> 51879 bytes
.../capa/vsepr/Trigonal-bipyramidal-3D-balls.png | Bin 47683 -> 43395 bytes
.../images/capa/vsepr/Trigonal-planar-stick.png | Bin 89521 -> 69265 bytes
common/static/images/hd.png | Bin 364 -> 355 bytes
common/static/images/high_pass_filter.png | Bin 48150 -> 26132 bytes
common/static/images/ico-tinymce-code.png | Bin 337 -> 228 bytes
common/static/images/ml_grading_icon.png | Bin 405 -> 379 bytes
common/static/images/partially-correct-icon.png | Bin 1141 -> 1047 bytes
common/static/images/peer_grading_icon.png | Bin 610 -> 472 bytes
common/static/images/placeholder-faculty.png | Bin 9137 -> 9130 bytes
common/static/images/placeholder-image.png | Bin 2312412 -> 1930682 bytes
.../static/images/sequence-nav/list-finished.png | Bin 1063 -> 139 bytes
.../static/images/sequence-nav/list-unfinished.png | Bin 1070 -> 142 bytes
.../static/images/sequence-nav/list-unstarted.png | Bin 1067 -> 142 bytes
common/static/images/sequence-nav/next-icon.png | Bin 1079 -> 264 bytes
.../static/images/sequence-nav/previous-icon.png | Bin 1062 -> 256 bytes
common/static/images/voltage_divider.png | Bin 27331 -> 13855 bytes
common/static/js/capa/genex/images/circles.png | Bin 1492 -> 974 bytes
common/static/js/capa/genex/images/circles_ie6.png | Bin 432 -> 358 bytes
common/static/js/capa/genex/images/corner.png | Bin 1140 -> 709 bytes
common/static/js/capa/genex/images/corner_ie6.png | Bin 412 -> 328 bytes
common/static/js/capa/genex/images/hborder.png | Bin 1995 -> 1205 bytes
common/static/js/capa/genex/images/hborder_ie6.png | Bin 706 -> 607 bytes
25 files changed, 0 insertions(+), 0 deletions(-)
2016-01-07 10:48:35 -05:00
Omar Al-Ithawi
7cf1353f01
Fixup: draggable capa icons disappear in RTL layout
2015-12-28 09:41:30 +02:00
Christina Roberts
3382a955c9
Merge pull request #10378 from edx/christina/fix-mathjax-preview
...
Disable Fast Preview for version 2.5.
2015-10-29 12:41:30 -04:00
cahrens
deb4e35f92
Disable Fast Preview for version 2.5.
...
Except for the Discussion Tab.
TNL-3693, TNL-3365
2015-10-29 11:56:08 -04:00
stv
a8d30c5de2
Remove circuit-schematic integration from wiki
2015-10-26 15:51:12 -07:00
Jolyon Bloomfield
c9fe2b9756
Fixing drag and drop labels
2015-08-16 20:16:40 -04:00
zubair-arbi
dbe4410d44
set overflow to scroll so that user can see full content with increased font size
...
TNL-256
2014-10-02 19:34:57 +05:00
Waqas Khalid
4834e51aca
Mathjax should be used after complete loading
...
Student couldn't able to submit his answer in ie9
becuase mathjax was used before its complete loading
thats cuase the problem. Mathjax operations should be
handled synchronously inorder to avoid error.
BLD-1199
2014-09-05 17:19:48 +05:00
David Baumgold
2e02cefc90
Update comments to point to openedx.atlassian.net
...
And whitespace corrections (automatically made by my editor, and I'm too lazy
to remove them)
2014-08-18 15:34:06 -04:00
Chris Terman
d3149f66aa
add initial_state attribute to jsinput tag
2014-07-23 09:21:42 -04:00
stv
fd10fbf725
Fix JSInput scope leak
...
Declare variables locally
- The `allSections` variable was leaking into the global scope, due to a
typo in the declaration.
- `dataProcessed` can be declared more narrowly within the callback.
2014-06-13 11:04:24 -07:00
stv
cf14dee790
Fix JSInput test fixture
...
Clean up fixtures automatically between tests
- Nesting test fixture markup within a DIV allows Jasmine to
automatically restore the fixture to a clean state between each test
run.
Fix id attribute collision typo
- This looks like a copy/pasta gone wrong; the two test INPUT elements
were both declared with the same id, `input_1`.
Remove trailing whitespace
2014-06-13 11:04:24 -07:00
stv
bdf90bfcfb
Remove superfluous JSInput test
...
The behavior previously tested here was to check that if a JSInput
element was marked as not processed, re-walking the DOM *should* have
reinitialized it. Unfortunately, this behavior is not supported by the
underlying JSChannel library. In fact, if JSChannel detects an existing
channel with the same origin and scope, it throws an uncaught exception,
leaving the DOM in a "broken" state.
JSInput will prevent duplicates from being added, as long as we don't
manually update the `data-processed` attribute. This behavior is already
being tested.
2014-06-13 11:04:24 -07:00
stv
60a9e99871
Fix JSInput tests
...
Select DOM elements with wildcard syntax
- DOM lookups were being done with non-existent literal selectors, so it
was returning empty lists. As assertions were to be made while
iterating over the list of elements, nothing was actually being
verified.
- Common code has been centralized in the setup function. By declaring
CSS selectors once, we minimize the odds of inadvertently using the
wrong selector, as happened here.
- Had these tests actually been iterating over a non-empty list, this
would have thrown undefined exceptions. jQuery.each calls its handler
with an index and an item/object as the arguments. However, the object
is a DOM-object, not a jQuery-object. These tests break, as they had
assumed the latter.
2014-06-13 11:04:24 -07:00
stv
e2cab19084
Ensure JSInput tests actually run
...
This test currently fails, meaning that the existing tests weren't
testing what they claimed.
Assertions are made for each element returned by the CSS selectors.
However, the selectors are assumed to be wildcard matches, but are
actually literal selectors. As there are no matched elements, this
causes the assertions to be (silently) checked zero times, without
failure.
2014-06-13 11:04:24 -07:00
Dave St.Germain
b073cfaece
Fixes BLD-1104
2014-06-03 10:30:58 -04:00
Dave St.Germain
285c07fc22
Addressed review feedback.
2014-05-22 10:40:31 -04:00
Dave St.Germain
232df30b3e
support aria-grabbed and aria-dropeffect
2014-05-22 09:51:50 -04:00
Dave St.Germain
f4391b5eb9
fixing drag and drop
2014-05-22 09:51:50 -04:00
Jonas Jelten
3de30aba2e
fixed retry invokation for calling setState
...
to successfully call a function with parameters by setTimeout,
it needs to be a function that will be called by setTimeout internally.
this patch actually enables multiple tries for calling the setState function.
2014-04-18 23:00:25 +02:00
Dave St.Germain
376b040775
Removed circuit editor setup code that had always been in
...
codemirror-compressed.js
2014-03-20 14:33:32 -04:00
jmclaus
5478525a42
Added JSInput template to Studio and a sop attribute to JSInput. Only if it's set to false, as in JSInput's template, will JSChannel be used to bypass it. In all other cases (attribute not present or set to something else), SOP is enforced. Compatibility with jsVGL is therefore maintained. Multiple JSInput are supported in a vertical. Also, save button now functions. [BLD-523, BLD-556, BLD-568]
2013-12-20 17:03:56 +01:00
Valera Rozuvan
1542a74d2b
Removed logme module. Using console.log() instead.
...
Removing "logme" from comments.
BLD-608
2013-12-20 16:25:44 +02:00
RobertMarks
e3b8ce708f
changes to allow multiple choicetextresponses in one problem
2013-11-19 09:55:35 -08:00
David Baumgold
8906cffb22
correct placement of baseUrl variable, use it to configure requirejs
2013-10-09 11:28:46 -04:00
David Baumgold
e53680bb92
make drag_and_drop component work with requirejs and changed static url
2013-10-09 10:26:22 -04:00
Peter Baratta
48cb05c037
Reset 'correctness' visual indicator of a problem on new input
...
Affects:
Choicegroups, option inputs, textline, and formula equation inputs
2013-08-30 12:03:41 -04:00
Peter Baratta
e312344dfa
Fix initial loading bug.
...
Change the `MathJax.Hub.Queue(initializeRequest)` to a simpler function call
(`initializeRequest.call(this)`). This was failing to give a proper context
to initializeRequest, and `this.value` was turning up as `undefined`.
Also add a fallback if we need to display some code before MathJax finishes
its original typesetting.
I was stubbing out `Queue` in my specs, so the tests had to be changed around
a little.
2013-08-13 13:33:51 -04:00
Peter Baratta
735e3b01a2
Create a new response type for Numerical/Formula
...
Named `FormulaEquationInput` (name up for debate)
- Based off ChemEqnIn
- Add FormulaEquationInput in inputtypes.py
- Add a call to a skeleton method for a preview
javascript:
- Queue up some MathJax
- Put some ordering on the AJAX requests: add a parameter when the request was started, when it returns check that it isn't outdated before displaying the preview
- Tests
Note: we moved the `jsinput` tests and DISABLED them, because they were causing the tests to fail.
2013-08-12 11:48:45 -04:00
RobertMarks
46ae2f9c26
Added support for a new problem type: ChoicetextResponse
2013-07-18 10:12:56 -07:00
Julian Arni
fd6abc88e2
Incorporate review comments
2013-07-08 14:32:02 -04:00
Julian Arni
386029bee3
Adding jasmine tests; code cleanup.
2013-07-01 10:18:38 -04:00
Julian Arni
b03d93901f
Pass arguments from ctxCall forward to set state
2013-06-26 12:36:04 -04:00
Julian Arni
1e0702f374
Allow nested object methods for the grade and state functions
2013-06-25 16:14:34 -04:00