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
OpenEdx
edx-platform
Commits
4e9db252
Commit
4e9db252
authored
Jun 29, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: users without course creation permission were not shown new library form
parent
14b48ed3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
cms/static/js/index.js
+2
-0
cms/templates/index.html
+3
-3
No files found.
cms/static/js/index.js
View file @
4e9db252
...
@@ -141,6 +141,8 @@ define(["domReady", "jquery", "underscore", "js/utils/cancel_on_escape", "js/vie
...
@@ -141,6 +141,8 @@ define(["domReady", "jquery", "underscore", "js/utils/cancel_on_escape", "js/vie
e
.
preventDefault
();
e
.
preventDefault
();
$
(
'.courses-tab'
).
toggleClass
(
'active'
,
tab
===
'courses'
);
$
(
'.courses-tab'
).
toggleClass
(
'active'
,
tab
===
'courses'
);
$
(
'.libraries-tab'
).
toggleClass
(
'active'
,
tab
===
'libraries'
);
$
(
'.libraries-tab'
).
toggleClass
(
'active'
,
tab
===
'libraries'
);
// Also toggle this course-related notice shown below the course tab, if it is present:
$
(
'.wrapper-creationrights'
).
toggleClass
(
'is-hidden'
,
tab
===
'libraries'
);
};
};
};
};
...
...
cms/templates/index.html
View file @
4e9db252
...
@@ -103,7 +103,9 @@
...
@@ -103,7 +103,9 @@
</form>
</form>
</div>
</div>
%if libraries_enabled:
% endif
%if libraries_enabled and show_new_library_button:
<div
class=
"wrapper-create-element wrapper-create-library"
>
<div
class=
"wrapper-create-element wrapper-create-library"
>
<form
class=
"form-create create-library library-info"
id=
"create-library-form"
name=
"create-library-form"
>
<form
class=
"form-create create-library library-info"
id=
"create-library-form"
name=
"create-library-form"
>
<div
class=
"wrap-error"
>
<div
class=
"wrap-error"
>
...
@@ -154,8 +156,6 @@
...
@@ -154,8 +156,6 @@
</div>
</div>
% endif
% endif
% endif
<!-- STATE: processing courses -->
<!-- STATE: processing courses -->
%if allow_course_reruns and rerun_creator_status and len(in_process_course_actions) > 0:
%if allow_course_reruns and rerun_creator_status and len(in_process_course_actions) > 0:
<div
class=
"courses courses-processing"
>
<div
class=
"courses courses-processing"
>
...
...
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