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
fdb338ce
Commit
fdb338ce
authored
Jan 08, 2015
by
swdanielli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code clean and http status
parent
67edd8f2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
19 deletions
+6
-19
recommender/recommender.py
+0
-0
recommender/static/css/tooltipster.css
+0
-0
recommender/static/js/src/cats.js
+5
-18
recommender/static/js/src/recommender.js
+0
-0
recommender/static/js/src/recommenderstudio.js
+1
-1
No files found.
recommender/recommender.py
View file @
fdb338ce
This diff is collapsed.
Click to expand it.
recommender/static/css/tooltipster.css
View file @
fdb338ce
This diff is collapsed.
Click to expand it.
recommender/static/js/src/cats.js
View file @
fdb338ce
...
...
@@ -63,28 +63,15 @@ var tooltipsCatsText = {
'.resourceRankingForDeendorsementButton.deendorsementMode'
:
'<span>Click to view resources in ordinary decreasing-vote order</span>'
};
var
uploadFileError
=
[
'FILE_TYPE_ERROR'
,
'IMPROPER_S3_SETUP'
,
'{"success": "Submission aborted!'
,
'FILE_SIZE_ERROR'
];
var
uploadFileErrorText
=
{
'FILE_TYPE_ERROR'
:
'Please upload an image in GIF/JPG/PNG'
,
'IMPROPER_S3_SETUP'
:
'The configuration of Amazon S3 is not properly set'
,
'{"success": "Submission aborted!'
:
'Size of uploaded file exceeds threshold'
,
'FILE_SIZE_ERROR'
:
'Size of uploaded file exceeds threshold'
415
:
'Please upload an image in GIF/JPG/PNG'
,
404
:
'The configuration of Amazon S3 is not properly set'
,
413
:
'Size of uploaded file exceeds threshold'
};
var
importResourceError
=
[
'NOT_A_STAFF'
,
'FILE_FORMAT_ERROR'
];
var
importResourceErrorText
=
{
'NOT_A_STAFF'
:
'Only staff can import resources'
,
'FILE_FORMAT_ERROR'
:
'Please submit the JSON file obtained with the download resources button'
403
:
'Only staff can import resources'
,
415
:
'Please submit the JSON file obtained with the download resources button'
};
var
problematicReasonsPrefix
=
'<br/>Here is a list of reasons why students think this resource problematic: <br/> '
;
...
...
recommender/static/js/src/recommender.js
View file @
fdb338ce
This diff is collapsed.
Click to expand it.
recommender/static/js/src/recommenderstudio.js
View file @
fdb338ce
...
...
@@ -18,7 +18,7 @@ function RecommenderXBlock(runtime, element) {
url
:
setConfigUrl
,
data
:
JSON
.
stringify
(
data
),
success
:
function
(
result
)
{
if
(
result
[
'Success'
]
==
true
)
{
alert
(
'The configurations have been updated'
);
}
alert
(
'The configurations have been updated'
);
}
});
});
...
...
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