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
fd8b375f
Commit
fd8b375f
authored
Sep 06, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translated …
parent
79b3af87
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
20 deletions
+20
-20
cms/static/coffee/src/views/module_edit.coffee
+3
-3
cms/static/coffee/src/views/tabs.coffee
+3
-3
cms/static/coffee/src/views/unit.coffee
+2
-2
cms/static/js/base.js
+2
-2
cms/static/js/models/section.js
+1
-1
cms/static/js/views/course_info_edit.js
+3
-3
cms/static/js/views/grader-select-view.js
+3
-3
cms/static/js/views/overview.js
+1
-1
cms/static/js/views/textbook.js
+2
-2
No files found.
cms/static/coffee/src/views/module_edit.coffee
View file @
fd8b375f
...
...
@@ -60,8 +60,8 @@ class CMS.Views.ModuleEdit extends Backbone.View
payload
.
parent_location
=
parent
$
.
post
(
"/create_item"
payload
(
data
)
=>
payload
(
data
)
=>
@
model
.
set
(
id
:
data
.
id
)
@
$el
.
data
(
'id'
,
data
.
id
)
@
render
()
...
...
@@ -85,7 +85,7 @@ class CMS.Views.ModuleEdit extends Backbone.View
data
.
metadata
=
_
.
extend
(
data
.
metadata
||
{},
@
changedMetadata
())
@
hideModal
()
saving
=
new
CMS
.
Views
.
Notification
.
Mini
title
:
gettext
(
'Saving
'
)
+
'…'
title
:
gettext
(
'Saving
…'
)
saving
.
show
()
@
model
.
save
(
data
).
done
(
=>
# # showToastMessage("Your changes have been saved.", null, 3)
...
...
cms/static/coffee/src/views/tabs.coffee
View file @
fd8b375f
...
...
@@ -21,7 +21,7 @@ class CMS.Views.TabsEdit extends Backbone.View
forcePlaceholderSize
:
true
axis
:
'y'
items
:
'> .component'
)
)
tabMoved
:
(
event
,
ui
)
=>
tabs
=
[]
...
...
@@ -34,7 +34,7 @@ class CMS.Views.TabsEdit extends Backbone.View
$
.
ajax
({
type
:
'POST'
,
url
:
'/reorder_static_tabs'
,
url
:
'/reorder_static_tabs'
,
data
:
JSON
.
stringify
({
tabs
:
tabs
}),
...
...
@@ -78,7 +78,7 @@ class CMS.Views.TabsEdit extends Backbone.View
course
:
course_location_analytics
id
:
$component
.
data
(
'id'
)
deleting
=
new
CMS
.
Views
.
Notification
.
Mini
title
:
gettext
(
'Deleting
'
)
+
'…'
title
:
gettext
(
'Deleting
…'
)
deleting
.
show
()
$
.
post
(
'/delete_item'
,
{
id
:
$component
.
data
(
'id'
)
...
...
cms/static/coffee/src/views/unit.coffee
View file @
fd8b375f
...
...
@@ -42,7 +42,7 @@ class CMS.Views.UnitEdit extends Backbone.View
payload
=
children
:
@
components
()
saving
=
new
CMS
.
Views
.
Notification
.
Mini
title
:
gettext
(
'Saving
'
)
+
'…'
title
:
gettext
(
'Saving
…'
)
saving
.
show
()
options
=
success
:
=>
@
model
.
unset
(
'children'
)
...
...
@@ -130,7 +130,7 @@ class CMS.Views.UnitEdit extends Backbone.View
click
:
(
view
)
=>
view
.
hide
()
deleting
=
new
CMS
.
Views
.
Notification
.
Mini
title
:
gettext
(
'Deleting
'
)
+
'…'
,
title
:
gettext
(
'Deleting
…'
)
,
deleting
.
show
()
$component
=
$
(
event
.
currentTarget
).
parents
(
'.component'
)
$
.
post
(
'/delete_item'
,
{
...
...
cms/static/js/base.js
View file @
fd8b375f
...
...
@@ -395,7 +395,7 @@ function _deleteItem($el, type) {
});
var
deleting
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
'Deleting
'
)
+
'…'
title
:
gettext
(
'Deleting
…'
)
});
deleting
.
show
();
...
...
@@ -840,7 +840,7 @@ function saveSetSectionScheduleDate(e) {
});
var
saving
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
"Saving
"
)
+
"…"
title
:
gettext
(
"Saving
…"
)
});
saving
.
show
();
// call into server to commit the new order
...
...
cms/static/js/models/section.js
View file @
fd8b375f
...
...
@@ -23,7 +23,7 @@ CMS.Models.Section = Backbone.Model.extend({
showNotification
:
function
()
{
if
(
!
this
.
msg
)
{
this
.
msg
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
"Saving
"
)
+
"…"
title
:
gettext
(
"Saving
…"
)
});
}
this
.
msg
.
show
();
...
...
cms/static/js/views/course_info_edit.js
View file @
fd8b375f
...
...
@@ -118,7 +118,7 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({
targetModel
.
set
({
date
:
this
.
dateEntry
(
event
).
val
(),
content
:
this
.
$codeMirror
.
getValue
()
});
// push change to display, hide the editor, submit the change
var
saving
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
'Saving
'
)
+
'…'
title
:
gettext
(
'Saving
…'
)
});
saving
.
show
();
var
ele
=
this
.
modelDom
(
event
);
...
...
@@ -183,7 +183,7 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({
});
self
.
modelDom
(
event
).
remove
();
var
deleting
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
'Deleting
'
)
+
'…'
title
:
gettext
(
'Deleting
…'
)
});
deleting
.
show
();
targetModel
.
destroy
({
...
...
@@ -327,7 +327,7 @@ CMS.Views.ClassInfoHandoutsView = Backbone.View.extend({
onSave
:
function
(
event
)
{
this
.
model
.
set
(
'data'
,
this
.
$codeMirror
.
getValue
());
var
saving
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
'Saving
'
)
+
'…'
title
:
gettext
(
'Saving
…'
)
});
saving
.
show
();
this
.
model
.
save
({},
{
...
...
cms/static/js/views/grader-select-view.js
View file @
fd8b375f
...
...
@@ -54,7 +54,7 @@ CMS.Views.OverviewAssignmentGrader = Backbone.View.extend({
e
.
preventDefault
();
cachethis
.
$el
.
removeClass
(
'is-active'
);
$
(
document
).
off
(
'click'
,
cachethis
.
removeMenu
);
}
}
;
this
.
hideSymbol
=
this
.
options
[
'hideSymbol'
];
this
.
render
();
},
...
...
@@ -82,7 +82,7 @@ CMS.Views.OverviewAssignmentGrader = Backbone.View.extend({
this
.
removeMenu
(
e
);
var
saving
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
'Saving
'
)
+
'…'
title
:
gettext
(
'Saving
…'
)
});
saving
.
show
();
...
...
@@ -96,4 +96,4 @@ CMS.Views.OverviewAssignmentGrader = Backbone.View.extend({
this
.
render
();
}
})
})
;
cms/static/js/views/overview.js
View file @
fd8b375f
...
...
@@ -226,7 +226,7 @@ function _handleReorder(event, ui, parentIdField, childrenSelector) {
children
.
push
(
ui
.
draggable
.
data
(
'id'
));
}
var
saving
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
'Saving
'
)
+
'…'
title
:
gettext
(
'Saving
…'
)
});
saving
.
show
();
$
.
ajax
({
...
...
cms/static/js/views/textbook.js
View file @
fd8b375f
...
...
@@ -35,7 +35,7 @@ CMS.Views.ShowTextbook = Backbone.View.extend({
click
:
function
(
view
)
{
view
.
hide
();
var
delmsg
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
"Deleting
"
)
+
"…"
title
:
gettext
(
"Deleting
…"
)
}).
show
();
textbook
.
destroy
({
complete
:
function
()
{
...
...
@@ -122,7 +122,7 @@ CMS.Views.EditTextbook = Backbone.View.extend({
this
.
setValues
();
if
(
!
this
.
model
.
isValid
())
{
return
;
}
var
saving
=
new
CMS
.
Views
.
Notification
.
Mini
({
title
:
gettext
(
"Saving
"
)
+
"…"
title
:
gettext
(
"Saving
…"
)
}).
show
();
var
that
=
this
;
this
.
model
.
save
({},
{
...
...
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