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
cea0f925
Commit
cea0f925
authored
Apr 08, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we don't mark the message bar as hiding if it is not shown.
parent
7f1c89b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
cms/static/js/views/settings/advanced_view.js
+6
-4
No files found.
cms/static/js/views/settings/advanced_view.js
View file @
cea0f925
...
@@ -117,15 +117,17 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
...
@@ -117,15 +117,17 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
}
}
},
},
showSaveCancelButtons
:
function
(
event
)
{
showSaveCancelButtons
:
function
(
event
)
{
if
(
!
this
.
buttonsVisible
)
{
if
(
!
this
.
notificationBarShowing
)
{
this
.
$el
.
find
(
".message-status"
).
removeClass
(
"is-shown"
);
this
.
$el
.
find
(
".message-status"
).
removeClass
(
"is-shown"
);
$
(
'.wrapper-notification'
).
removeClass
(
'is-hiding'
).
addClass
(
'is-shown'
);
$
(
'.wrapper-notification'
).
removeClass
(
'is-hiding'
).
addClass
(
'is-shown'
);
this
.
buttonsVisible
=
true
;
this
.
notificationBarShowing
=
true
;
}
}
},
},
hideSaveCancelButtons
:
function
()
{
hideSaveCancelButtons
:
function
()
{
$
(
'.wrapper-notification'
).
removeClass
(
'is-shown'
).
addClass
(
'is-hiding'
);
if
(
this
.
notificationBarShowing
)
{
this
.
buttonsVisible
=
false
;
$
(
'.wrapper-notification'
).
removeClass
(
'is-shown'
).
addClass
(
'is-hiding'
);
this
.
notificationBarShowing
=
false
;
}
},
},
saveView
:
function
(
event
)
{
saveView
:
function
(
event
)
{
// TODO one last verification scan:
// TODO one last verification scan:
...
...
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