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
15249b03
Commit
15249b03
authored
Jan 17, 2013
by
David Ormsbee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1296 from MITx/hotfix/alex/gst
Hotfix/alex/gst
parents
fd20496a
176be159
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
11 deletions
+12
-11
common/lib/xmodule/xmodule/gst_module.py
+2
-3
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
+2
-2
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst.js
+3
-1
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst_main.js
+1
-1
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/sliders.js
+3
-3
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/state.js
+1
-1
No files found.
common/lib/xmodule/xmodule/gst_module.py
View file @
15249b03
...
...
@@ -24,11 +24,10 @@ class GraphicalSliderToolModule(XModule):
'''
js
=
{
'coffee'
:
[
resource_string
(
__name__
,
'js/src/javascript_loader.coffee'
)],
'js'
:
[
# 3rd party libraries used by graphic slider tool.
# TODO - where to store them - outside xmodule?
resource_string
(
__name__
,
'js/src/graphical_slider_tool/jstat-1.0.0.min.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/gst_main.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/state.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/logme.js'
),
...
...
@@ -38,8 +37,8 @@ class GraphicalSliderToolModule(XModule):
resource_string
(
__name__
,
'js/src/graphical_slider_tool/graph.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/el_output.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/g_label_el_output.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/gst.js'
)
]
}
js_module_name
=
"GraphicalSliderTool"
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
View file @
15249b03
...
...
@@ -401,7 +401,7 @@ define('Graph', ['logme'], function (logme) {
return
false
;
}
}
else
{
logme
(
'MESSAGE: "xticks" were not specified. Using defaults.'
);
//
logme('MESSAGE: "xticks" were not specified. Using defaults.');
return
false
;
}
...
...
@@ -416,7 +416,7 @@ define('Graph', ['logme'], function (logme) {
return
false
;
}
}
else
{
logme
(
'MESSAGE: "yticks" were not specified. Using defaults.'
);
//
logme('MESSAGE: "yticks" were not specified. Using defaults.');
return
false
;
}
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst.js
View file @
15249b03
...
...
@@ -14,7 +14,9 @@ window.GraphicalSliderTool = function (el) {
// with a unique DOM ID), we will iterate over all children, and for
// each match, we will call GstMain module.
$
(
el
).
children
(
'.graphical_slider_tool'
).
each
(
function
(
index
,
value
)
{
GstMain
(
$
(
value
).
attr
(
'id'
));
JavascriptLoader
.
executeModuleScripts
(
$
(
value
),
function
(){
GstMain
(
$
(
value
).
attr
(
'id'
));
});
});
});
};
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst_main.js
View file @
15249b03
...
...
@@ -19,7 +19,7 @@ define(
if
(
$
(
'#'
+
gstId
).
attr
(
'data-processed'
)
!==
'processed'
)
{
$
(
'#'
+
gstId
).
attr
(
'data-processed'
,
'processed'
);
}
else
{
logme
(
'MESSAGE: Already processed GST with ID '
+
gstId
+
'. Skipping.'
);
//
logme('MESSAGE: Already processed GST with ID ' + gstId + '. Skipping.');
return
;
}
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/sliders.js
View file @
15249b03
...
...
@@ -20,9 +20,9 @@ define('Sliders', ['logme'], function (logme) {
}
else
if
(
sliderDiv
.
length
>
1
)
{
logme
(
'ERROR: Found more than one slider for the parameter "'
+
paramName
+
'".'
);
logme
(
'sliderDiv.length = '
,
sliderDiv
.
length
);
}
else
{
logme
(
'MESSAGE: Did not find a slider for the parameter "'
+
paramName
+
'".'
);
}
}
//
else {
//
logme('MESSAGE: Did not find a slider for the parameter "' + paramName + '".');
//
}
}
function
createSlider
(
sliderDiv
,
paramName
)
{
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/state.js
View file @
15249b03
...
...
@@ -24,7 +24,7 @@ define('State', ['logme'], function (logme) {
dynamicElByElId
=
{};
stateInst
+=
1
;
logme
(
'MESSAGE: Creating state instance # '
+
stateInst
+
'.'
);
//
logme('MESSAGE: Creating state instance # ' + stateInst + '.');
// Initially, there are no parameters to track. So, we will instantiate
// an empty object.
...
...
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