mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Minor fixes
This commit is contained in:
parent
29e92a1220
commit
c832b75e60
1 changed files with 17 additions and 16 deletions
5
main.js
5
main.js
|
@ -1136,8 +1136,6 @@ function SaveQuiz(quiz, questionData) {
|
|||
var allQ = 0;
|
||||
var addedQ = 0;
|
||||
var newQuestions = [];
|
||||
console.log("QUIZ:");
|
||||
console.log(quiz);
|
||||
for (var i = 0; i < quiz.length; i++) // going though quiz
|
||||
{
|
||||
// searching for same questions in questionData
|
||||
|
@ -1527,6 +1525,7 @@ function ShowMessage(msgItem, timeout, funct) {
|
|||
}
|
||||
|
||||
var buttonMargin = "2px 2px 2px 2px"; // uniform button margin
|
||||
if (msgItem[currItem].length == 0) { // TODO: test this
|
||||
// PREV SUGG BUTTON ------------------------------------------------------------------------------------------------------------
|
||||
var prevSuggButton = CreateNodeWithText(prevSuggestionCell, "<", "button");
|
||||
prevSuggButton.style.margin = buttonMargin; // fancy margin
|
||||
|
@ -1543,6 +1542,7 @@ function ShowMessage(msgItem, timeout, funct) {
|
|||
ChangeCurrRelevantQuestionIndex(1);
|
||||
SetQuestionText();
|
||||
});
|
||||
}
|
||||
// deciding if has multiple questions ------------------------------------------------------------------------------------------------
|
||||
if (msgItem.length == 1) {
|
||||
SetQuestionText();
|
||||
|
@ -1960,6 +1960,7 @@ function NormalizeSpaces(input) {
|
|||
}
|
||||
|
||||
function SendXHRMessage(message) {
|
||||
console.log("HAAAAAAAAAAAAAAAAAAAAAAAAAAA");
|
||||
|
||||
var url = serverAdress + "isAdding";
|
||||
GM_xmlhttpRequest({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue