Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
01678c3b
Commit
01678c3b
authored
Jun 07, 2013
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #70 from edx/valera/gst_fixes_hsph
GST fixes
parents
13fa5512
d9651d74
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
35 deletions
+57
-35
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/el_output.js
+4
-2
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/g_label_el_output.js
+4
-2
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
+46
-30
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst_main.js
+2
-0
lms/templates/staff_problem_info.html
+1
-1
No files found.
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/el_output.js
View file @
01678c3b
...
...
@@ -98,8 +98,10 @@ define('ElOutput', ['logme'], function (logme) {
);
logme
(
'Error message: "'
+
err
.
message
+
'".'
);
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not create a function from string "'
+
funcString
+
'".'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
if
(
state
.
showDebugInfo
)
{
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not create a function from string "'
+
funcString
+
'".'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
}
paramNames
.
pop
();
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/g_label_el_output.js
View file @
01678c3b
...
...
@@ -87,8 +87,10 @@ define('GLabelElOutput', ['logme'], function (logme) {
);
logme
(
'Error message: "'
+
err
.
message
+
'".'
);
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not create a function from string "'
+
funcString
+
'".'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
if
(
state
.
showDebugInfo
)
{
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not create a function from string "'
+
funcString
+
'".'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
}
paramNames
.
pop
();
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
View file @
01678c3b
...
...
@@ -242,8 +242,10 @@ define('Graph', ['logme'], function (logme) {
);
logme
(
'Error message: "'
+
err
.
message
+
'"'
);
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not create a function from the string "'
+
funcString
+
'".'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
if
(
state
.
showDebugInfo
)
{
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not create a function from the string "'
+
funcString
+
'".'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
}
paramNames
.
pop
();
...
...
@@ -709,15 +711,17 @@ define('Graph', ['logme'], function (logme) {
);
logme
(
'Error message: "'
+
err
.
message
+
'"'
);
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN '
+
'XML: Could not create a function from the string "'
+
funcString
+
'" for xrange.min.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error '
+
'message: "'
+
err
.
message
+
'".'
+
'</div>'
);
if
(
state
.
showDebugInfo
)
{
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN '
+
'XML: Could not create a function from the string "'
+
funcString
+
'" for xrange.min.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error '
+
'message: "'
+
err
.
message
+
'".'
+
'</div>'
);
}
return
false
;
}
...
...
@@ -790,15 +794,17 @@ define('Graph', ['logme'], function (logme) {
);
logme
(
'Error message: "'
+
err
.
message
+
'"'
);
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN '
+
'XML: Could not create a function from the string "'
+
funcString
+
'" for xrange.max.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
if
(
state
.
showDebugInfo
)
{
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN '
+
'XML: Could not create a function from the string "'
+
funcString
+
'" for xrange.max.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
}
return
false
;
}
...
...
@@ -1006,8 +1012,10 @@ define('Graph', ['logme'], function (logme) {
);
logme
(
'Error message: "'
+
err
.
message
+
'"'
);
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not create a function from the string "'
+
funcString
+
'".'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
if
(
state
.
showDebugInfo
)
{
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not create a function from the string "'
+
funcString
+
'".'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
}
paramNames
.
pop
();
paramNames
.
pop
();
...
...
@@ -1133,8 +1141,10 @@ define('Graph', ['logme'], function (logme) {
logme
(
'ERROR: Could not determine xrange start.'
);
logme
(
'Error message: "'
+
err
.
message
+
'".'
);
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not determine xrange start from defined function.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
if
(
state
.
showDebugInfo
)
{
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not determine xrange start from defined function.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
}
return
false
;
}
...
...
@@ -1144,8 +1154,10 @@ define('Graph', ['logme'], function (logme) {
logme
(
'ERROR: Could not determine xrange end.'
);
logme
(
'Error message: "'
+
err
.
message
+
'".'
);
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not determine xrange end from defined function.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
if
(
state
.
showDebugInfo
)
{
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not determine xrange end from defined function.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
}
return
false
;
}
...
...
@@ -1175,8 +1187,10 @@ define('Graph', ['logme'], function (logme) {
logme
(
'ERROR: Could not generate data.'
);
logme
(
'Error message: "'
+
err
.
message
+
'".'
);
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not generate data from defined function.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
if
(
state
.
showDebugInfo
)
{
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not generate data from defined function.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
}
return
false
;
}
...
...
@@ -1204,8 +1218,10 @@ define('Graph', ['logme'], function (logme) {
logme
(
'ERROR: Could not generate data.'
);
logme
(
'Error message: "'
+
err
.
message
+
'".'
);
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not generate data from function.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
if
(
state
.
showDebugInfo
)
{
$
(
'#'
+
gstId
).
html
(
'<div style="color: red;">'
+
'ERROR IN XML: Could not generate data from function.'
+
'</div>'
);
$
(
'#'
+
gstId
).
append
(
'<div style="color: red;">'
+
'Error message: "'
+
err
.
message
+
'".'
+
'</div>'
);
}
return
false
;
}
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst_main.js
View file @
01678c3b
...
...
@@ -51,6 +51,8 @@ define(
// state object.
state
=
State
(
gstId
,
config
);
state
.
showDebugInfo
=
false
;
// It is possible that something goes wrong while extracting parameters
// from the JSON config object. In this case, we will not continue.
if
(
state
===
undefined
)
{
...
...
lms/templates/staff_problem_info.html
View file @
01678c3b
## The JS for this is defined in xqa_interface.html
${module_content}
%if location.category in ['problem','video','html','combinedopenended']:
%if location.category in ['problem','video','html','combinedopenended'
,'graphical_slider_tool'
]:
% if edit_link:
<div>
<a
href=
"${edit_link}"
>
Edit
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment