Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RecommenderXBlock
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
RecommenderXBlock
Commits
67edd8f2
Commit
67edd8f2
authored
Jan 07, 2015
by
swdanielli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code clean
parent
d9d7d9fe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
recommender/recommender.py
+0
-0
recommender/static/js/src/recommender.js
+2
-1
recommender/static/js/src/recommenderstudio.js
+4
-4
No files found.
recommender/recommender.py
View file @
67edd8f2
This diff is collapsed.
Click to expand it.
recommender/static/js/src/recommender.js
View file @
67edd8f2
...
...
@@ -1133,8 +1133,9 @@ function RecommenderXBlock(runtime, element, init_data) {
function
initializeRecommender
()
{
/* Set configuration variables */
FLAGGED_RESOURCE_REASONS
=
{};
/* the default page of resources showed to students. Should always be 1 */
CURRENT_PAGE
=
1
;
DISABLE_DEV_UX
=
init_data
[
'DISABLE_DEV_UX'
];
CURRENT_PAGE
=
init_data
[
'CURRENT_PAGE'
];
ENTRIES_PER_PAGE
=
init_data
[
'ENTRIES_PER_PAGE'
];
PAGE_SPAN
=
init_data
[
'PAGE_SPAN'
];
IS_USER_STAFF
=
init_data
[
'IS_USER_STAFF'
];
...
...
recommender/static/js/src/recommenderstudio.js
View file @
67edd8f2
...
...
@@ -8,10 +8,10 @@ function RecommenderXBlock(runtime, element) {
function
bindConfigSettingEvent
()
{
$
(
'.configSubmit'
).
click
(
function
()
{
var
data
=
{};
data
[
'DISABLE_DEV_UX'
]
=
$
(
'.developedUXDisable'
).
val
();
data
[
'ENTRIES_PER_PAGE'
]
=
$
(
'.entriesPerPage'
).
val
(
);
data
[
'PAGE_SPAN'
]
=
$
(
'.pageSpan'
).
val
(
);
data
[
'INTRO
'
]
=
$
(
'.introEnable'
).
val
()
;
data
[
'DISABLE_DEV_UX'
]
=
$
(
'.developedUXDisable'
).
val
()
==
'true'
;
data
[
'ENTRIES_PER_PAGE'
]
=
parseInt
(
$
(
'.entriesPerPage'
).
val
()
);
data
[
'PAGE_SPAN'
]
=
parseInt
(
$
(
'.pageSpan'
).
val
()
);
data
[
'INTRO
_ENABLE'
]
=
$
(
'.introEnable'
).
val
()
==
'true'
;
$
.
ajax
({
type
:
"POST"
,
...
...
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