Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 6822124

Browse files
author
Nathan Shaaban
committed
Merge branch 'dev' of github.com:ctrlaltf24/assignmentsmanager into staging
2 parents f1b1062 + 9c41e64 commit 6822124

File tree

15 files changed

+33
-6
lines changed

15 files changed

+33
-6
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
resources/BBCodeParser/
2-
resources/CLNDR-1.4.7/
31
public_html/class/
42
public_html/assets
5-
public_html/resources/
6-
public_html/adminer
3+
public_html/adminer
4+
error_log.txt

.gitmodules

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[submodule "resources/JBBCode"]
2+
path = resources/JBBCode
3+
url = https://github.com/jbowens/jBBCode.git
4+
[submodule "public_html/resources/CLNDR"]
5+
path = public_html/resources/CLNDR
6+
url = https://github.com/kylestetz/CLNDR.git
7+
[submodule "public_html/resources/MathJax"]
8+
path = public_html/resources/MathJax
9+
url = https://github.com/mathjax/MathJax.git
10+
[submodule "public_html/resources/sceditor"]
11+
path = public_html/resources/sceditor
12+
url = https://github.com/samclarke/SCEditor.git

public_html/js/submitQuestion.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
var submitQuestionData = {};
2+
13
window.onload = function(e) {
24
var startTime = (new Date).getTime();
35
registerForms(startTime);
@@ -7,6 +9,12 @@ function registerForms(startTime) {
79
$("form").submit(function(event) {
810
event.preventDefault();
911
var element = this;
12+
if(submitQuestionData[$(this).prop("action")]==$(this).serialize()){
13+
// Do not submit duplicate data.
14+
return;
15+
} else {
16+
submitQuestionData[$(this).prop("action")]=$(this).serialize();
17+
}
1018
$.post($(this).prop("action") + "&timeTaken=" + ((new Date).getTime() -
1119
startTime), $(this).serialize(), function(data) {
1220
$(element).get(0).outerHTML = data;

public_html/resources/CLNDR

Submodule CLNDR added at 06e2244

public_html/resources/MathJax

Submodule MathJax added at 11c8c75

public_html/resources/MathJax-master/TODO_LINK_GIT_REPOS

Whitespace-only changes.

public_html/resources/VisualMathEditor/TODO_LINK_GIT_REPOS

Whitespace-only changes.

public_html/resources/edited cal/TODO_LINK_GIT_REPOS

Whitespace-only changes.

public_html/resources/googleAuth/TODO_LINK_GIT_REPOS

Whitespace-only changes.

public_html/resources/sceditor

Submodule sceditor added at 65cc347

0 commit comments

Comments
 (0)