Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
b44b71e
fix type replace assemble_matrix with assemble_tableau (#591)
mgage Jul 20, 2021
c5efa09
Resolve problem with space after function to a power. (#598)
dpvc Aug 10, 2021
37637e2
Merge pull request #599 from dpvc/hotfix-parser
drgrice1 Aug 11, 2021
76d11db
fix calls to Parser::Value::TeX & too many (cooks)
drdrew42 Oct 15, 2021
3edee91
forgot to include explicit parens
drdrew42 Oct 15, 2021
f90297b
drop custom typeMatch & let SUPER do it instead
drdrew42 Oct 15, 2021
c4a26ee
don't declare outermost parens
drdrew42 Oct 16, 2021
7d0d3e4
Update macros/contextFraction.pl
drdrew42 Oct 20, 2021
0e591bf
restore typeMatch and block string assignment
drdrew42 Nov 4, 2021
76ba414
Merge pull request #608 from drdrew42/bugfix/too-many-fraction-parens
drgrice1 Dec 2, 2021
ff6c945
Merge pull request #609 from drdrew42/bugfix/607-parser-assignment
drgrice1 Dec 2, 2021
302ba3f
Fix an issue introduced by #609 in which equations parsed in PGML via
drgrice1 Dec 28, 2021
4400e4f
Merge pull request #622 from drgrice1/fix-parser-assignment-parsing
pstaabp Jan 18, 2022
5b90c7f
Fix another regression caused by #609.
drgrice1 Jan 29, 2022
1b0b5ec
Merge pull request #645 from drgrice1/bug/another-609-regression
pstaabp Feb 6, 2022
3851503
Update the copyright in files and version bump.
drgrice1 Apr 19, 2022
c529668
Merge pull request #672 from drgrice1/update-copyright
drgrice1 Apr 22, 2022
e492e60
Merge remote-tracking branch 'origin/main' into PG-2.17
drgrice1 Apr 22, 2022
18d4db0
Fix tab order for the three point quadratic and four point cubic tools.
drgrice1 Apr 22, 2022
8841ba1
Merge pull request #674 from drgrice1/bugfix/graphtool-focus-order
pstaabp May 13, 2022
4ae6f0e
Fix pointer focus for the center of a circle.
drgrice1 May 19, 2022
9b6d1e8
Merge pull request #676 from drgrice1/graphtool-circle-center-focus
pstaabp May 20, 2022
0cf8cd4
Patch AnswerHints so that if a subroutine in the list "dies" there will
taniwallach May 24, 2022
ddcc42c
Provide an error message as the result message when a subroutine
taniwallach May 26, 2022
daec8d9
perltidy macros/answerHints.pl
taniwallach May 26, 2022
84b66ad
Limit loop to compute factorial to n<=170, for n>170 return Perl Inf,
taniwallach May 26, 2022
d5d55d1
Fix ww3 mq-editor preview button code causing console log error in ww…
drgrice1 May 26, 2022
db249d9
Revert to the mqeditor toolbar focus hack previously used with WeBWor…
drgrice1 May 26, 2022
a25ced5
Factorial unit test (#1)
pstaabp May 27, 2022
3cdcd9b
Merge pull request #682 from taniwallach/factorial-fix
pstaabp May 29, 2022
f8bdf3c
MathQuill when used in an RTL language should still create
taniwallach May 29, 2022
1acd618
Fix a typo in the scaffold.scss file.
drgrice1 May 29, 2022
7fd44f6
Merge pull request #687 from drgrice1/scaffold-selector-css-typo
drdrew42 May 30, 2022
7852192
Merge pull request #686 from taniwallach/mathquill-rtl-fix
pstaabp May 31, 2022
feb490c
Fix a serious bug discovered by Glenn Rice - incorrect handling if the
taniwallach Jun 2, 2022
33048ac
Correct value for electron volt in Units.pm
duffee Jun 4, 2022
a0d5829
Added unit tests for Units.pm
duffee Jun 4, 2022
283feb8
Migrate trig_degrees.t to Test2
duffee Jun 5, 2022
183b6e9
Migrate remaining tests in t/context to Test2
duffee Jun 5, 2022
3a3258c
Merge pull request #680 from taniwallach/answerhints-patch
pstaabp Jun 5, 2022
7691450
Skip electron volt tests until PG-2.17
duffee Jun 5, 2022
4a1291e
Add correct t/README.md
duffee Jun 5, 2022
ccecf08
Migrate macros tests to Test2
duffee Jun 5, 2022
730a154
Migrate math_objects_basics.t to Test2
duffee Jun 5, 2022
71a81e6
Migrating tableau test to Test2
duffee Jun 9, 2022
3b612f3
Tidy tableau.t
duffee Jun 9, 2022
bbc2724
Fix the prevention of creating degenerate objects with keyboard contr…
drgrice1 Jun 13, 2022
16b8225
Merge pull request #690 from duffee/Units_eV_only
drgrice1 Jul 6, 2022
85bb10b
Merge pull request #693 from drgrice1/fix-keyboard-degenerates
pstaabp Jul 6, 2022
07b38e3
Merge pull request #685 from drgrice1/revert-to-mqedit-toolbar-focus-…
pstaabp Jul 6, 2022
c2c4d31
Merge pull request #681 from drgrice1/ww3-preview-not-in-ww2
pstaabp Jul 6, 2022
5a7ae5f
Tweak the styles for lables, text inputs, selects, and textareas in p…
drgrice1 Jul 7, 2022
f28a548
Only use \textstyle with mixed numbers.
somiaj May 26, 2022
8e1d524
Merge pull request #683 from somiaj/fraction-usetextstyle
pstaabp Jul 8, 2022
352d494
For PTX output, don't include hidden MathQuill inputs
Alex-Jordan Jul 9, 2022
3f38a29
Merge pull request #695 from Alex-Jordan/PTXfix
pstaabp Jul 10, 2022
d3288f9
Merge pull request #694 from drgrice1/pg-problem-style-tweaks
pstaabp Jul 11, 2022
e7f73e1
Make knowls wait until the page css has loaded before initializing.
drgrice1 Jul 13, 2022
3ef38fe
Merge pull request #696 from drgrice1/knowls-await-load
pstaabp Jul 13, 2022
d242aab
Merge pull request #697 from openwebwork/PG-2.17
drgrice1 Jul 18, 2022
c281f0e
Merge branch 'openwebwork:main' into migration_to_Test2
duffee Jul 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Online Homework Delivery System
Version 2.*

Copyright 2000-2018, The WeBWorK Project
Copyright 2000-2022, The WeBWorK Project
All rights reserved.

This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

http://webwork.maa.org/wiki/Category:Release_Notes

Copyright 2000-2017, The WeBWorK Project
Copyright 2000-2022, The WeBWorK Project
http://webwork.maa.org
All rights reserved.
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$PG_VERSION ='2.16+develop';
$PG_COPYRIGHT_YEARS = '1996-2021';
$PG_VERSION ='2.17';
$PG_COPYRIGHT_YEARS = '1996-2022';

1;
1 change: 1 addition & 0 deletions htdocs/js/apps/GraphTool/cubictool.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
}

el.setPosition(JXG.COORDS_BY_USER, [x, el.Y()]);
gt.board.update();
}
},

Expand Down
11 changes: 9 additions & 2 deletions htdocs/js/apps/GraphTool/graphtool.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ window.graphTool = (containerId, options) => {
else if (y > boundingBox[1]) y = boundingBox[1] - gt.snapSizeY;

point1.setPosition(JXG.COORDS_BY_USER, [x, y]);
gt.board.update();
};

// Prevent paired points from being moved into the same position by a drag. This
Expand Down Expand Up @@ -664,6 +665,11 @@ window.graphTool = (containerId, options) => {
));
this.definingPts.push(center, point);
this.focusPoint = center;

// Redefine the circle's hasPoint method to return true if the center point has the given coordinates, so
// that a pointer over the center point will give focus to the object with the center point activated.
const circleHasPoint = this.baseObj.hasPoint.bind(this.baseObj);
this.baseObj.hasPoint = (x, y) => circleHasPoint(x, y) || center.hasPoint(x, y);
}

handleKeyEvent(e, el) {
Expand Down Expand Up @@ -1174,7 +1180,8 @@ window.graphTool = (containerId, options) => {
if (e.key !== 'Tab' ||
(index === 0 && e.shiftKey) ||
(index === gt.graphedObjs.length - 1 && !e.shiftKey) ||
(a.length > 1 && ((pIndex === 0 && !e.shiftKey) || (pIndex === 1 && e.shiftKey)))
(a.length > 1 &&
((pIndex === 0 && !e.shiftKey) || (pIndex === a.length - 1 && e.shiftKey)))
)
return;

Expand All @@ -1194,8 +1201,8 @@ window.graphTool = (containerId, options) => {

obj.blur();
};
point.rendNode.addEventListener('keydown', point.focusOutHandler);
}
point.rendNode.addEventListener('keydown', point.focusOutHandler);

// Attach a focusin handler to all points to update the coordinates display.
point.focusInHandler = (e) => gt.setTextCoords(point.X(), point.Y());
Expand Down
1 change: 1 addition & 0 deletions htdocs/js/apps/GraphTool/quadratictool.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
}

el.setPosition(JXG.COORDS_BY_USER, [x, el.Y()]);
gt.board.update();
}
},

Expand Down
5 changes: 5 additions & 0 deletions htdocs/js/apps/Knowls/knowl.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
};

const initializeKnowl = (knowl) => {
if (getComputedStyle(knowl)?.display === '') {
setTimeout(() => initializeKnowl(knowl), 100);
return;
}

knowl.dataset.bsToggle = 'collapse';
if (!knowl.knowlContainer) {
knowl.knowlContainer = document.createElement('div');
Expand Down
2 changes: 2 additions & 0 deletions htdocs/js/apps/MathQuill/mqeditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ span[id^="mq-answer"].incorrect {
}

span[id^="mq-answer"] {
/*rtl:ignore*/
direction: ltr;
padding: 4px 5px 2px 5px;
border-radius: 4px !important;
Expand All @@ -31,6 +32,7 @@ input[type="text"].codeshard.mq-edit {
max-height: 95vh;
position: fixed;
font-size: .75em;
/*rtl:ignore*/
direction: ltr;
display: flex;
flex-direction: column;
Expand Down
24 changes: 14 additions & 10 deletions htdocs/js/apps/MathQuill/mqeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@
{ id: 'text', latex: '\\text', tooltip: 'text mode (")', icon: 'Tt' }
];

answerQuill.hasFocus = false;

// Open the toolbar when the mathquill answer box gains focus.
answerQuill.textarea.addEventListener('focusin', () => {
answerQuill.hasFocus = true;
if (answerQuill.toolbar) return;

answerQuill.toolbar = document.createElement('div');
Expand Down Expand Up @@ -114,6 +117,7 @@
}));

button.addEventListener('click', () => {
answerQuill.hasFocus = true;
answerQuill.mathField.cmd(button.dataset.latex);
answerQuill.textarea.focus();
})
Expand All @@ -136,15 +140,15 @@
});

answerQuill.textarea.addEventListener('focusout', (e) => {
if (e.relatedTarget && (e.relatedTarget.closest('.quill-toolbar') ||
e.relatedTarget.classList.contains('symbol-button')))
return;
if (answerQuill.toolbar) {
window.removeEventListener('resize', answerQuill.toolbar.adjustWidth);
answerQuill.toolbar.tooltips.forEach((tooltip) => tooltip.dispose());
answerQuill.toolbar.remove();
delete answerQuill.toolbar;
}
answerQuill.hasFocus = false;
setTimeout(function() {
if (!answerQuill.hasFocus && answerQuill.toolbar) {
window.removeEventListener('resize', answerQuill.toolbar.adjustWidth);
answerQuill.toolbar.tooltips.forEach((tooltip) => tooltip.dispose());
answerQuill.toolbar.remove();
delete answerQuill.toolbar;
}
}, 200);
});

// Trigger an answer preview when the enter key is pressed in an answer box.
Expand All @@ -161,7 +165,7 @@
document.querySelector('input[name=previewAnswers]')?.click();
// For ww3
const previewButtonId =
answerQuill.textarea.closest('[name=problemMainForm]')[0]?.id
answerQuill.textarea.closest('[name=problemMainForm]')?.id
.replace('problemMainForm', 'previewAnswers');
if (previewButtonId) document.getElementById(previewButtonId)?.click();
}
Expand Down
8 changes: 5 additions & 3 deletions htdocs/js/apps/Problem/problem.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* WeBWorK Online Homework Delivery System
* Copyright &copy; 2000-2021 The WeBWorK Project, https://github.com/openwebwork
* Copyright &copy; 2000-2022 The WeBWorK Project, https://github.com/openwebwork
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of either: (a) the GNU General Public License as published by the
Expand Down Expand Up @@ -34,7 +34,6 @@

/* Problem elements */
label, input[type=text], select, textarea {
font-size: 16px;
font-weight: normal;
line-height: 18px;
width: auto;
Expand All @@ -48,10 +47,13 @@
vertical-align: middle;
border: 1px solid #ccc;
border-radius: 4px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
background-color: white;
}

textarea, input[type=text] {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

input[type=text] {
height: 30px;
font-size: 14px;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/js/apps/Scaffold/scaffold.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
& > button.accordion-button {
background: #eee;

&::focus {
&:focus {
box-shadow: none;
}

Expand Down
Loading