Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
4c5518ac
Commit
4c5518ac
authored
Jun 07, 2017
by
Awais
Committed by
Awais Qureshi
Jun 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide history comparison buttons if current obj and history obj are same.
ECOM-7854
parent
dfe712e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
course_discovery/static/js/publisher/disable-track-change-btns.js
+14
-0
course_discovery/templates/publisher/course_edit_form.html
+1
-0
No files found.
course_discovery/static/js/publisher/disable-track-change-btns.js
0 → 100644
View file @
4c5518ac
$
(
document
).
ready
(
function
()
{
// if current object and history object are same don't show the history changes buttons.
if
(
$
(
'#id_history_revision'
).
val
())
{
$
(
'.history'
).
each
(
function
()
{
var
element_id
=
this
.
id
.
split
(
'_revision'
)[
0
];
var
current_course_object
=
$
(
'#'
+
element_id
).
val
().
trim
();
var
history_object_value
=
$
(
this
).
val
().
trim
();
if
(
history_object_value
===
current_course_object
)
{
$
(
this
).
closest
(
'div'
).
find
(
".mce-history-changes"
).
hide
();
}
});
}
});
course_discovery/templates/publisher/course_edit_form.html
View file @
4c5518ac
...
...
@@ -631,6 +631,7 @@
<script
src=
"{% static 'js/publisher/decode-html.js' %}"
></script>
<script
src=
"{% static 'js/publisher/modal-screen.js' %}"
></script>
<script
src=
"{% static 'js/publisher/disable-track-change-btns.js' %}"
></script>
{% endblock %}
...
...
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