added modal cover for editors

This commit is contained in:
Tom Giannattasio
2012-12-07 14:31:48 -05:00
committed by Brian Talbot
parent d7b3f28d17
commit 75c4909785
11 changed files with 33 additions and 29 deletions

View File

@@ -56,6 +56,7 @@ class CMS.Views.ModuleEdit extends Backbone.View
event.preventDefault()
data = @module.save()
data.metadata = @metadata()
$modalCover.hide()
@model.save(data).done( =>
# # showToastMessage("Your changes have been saved.", null, 3)
@module = null
@@ -69,9 +70,11 @@ class CMS.Views.ModuleEdit extends Backbone.View
event.preventDefault()
@$el.removeClass('editing')
@$component_editor().slideUp(150)
$modalCover.hide()
clickEditButton: (event) ->
event.preventDefault()
@$el.addClass('editing')
$modalCover.show()
@$component_editor().slideDown(150)
@loadEdit()

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -5,14 +5,6 @@
background-color: #fff;
}
.upload-button {
@include blue-button;
float: left;
margin-right: 20px;
padding: 8px 30px 10px;
font-size: 12px;
}
.asset-library {
@include clearfix;

View File

@@ -34,6 +34,14 @@
background: url(../img/video-icon.png) no-repeat;
}
.upload-icon {
display: inline-block;
width: 22px;
height: 13px;
margin-right: 5px;
background: url(../img/upload-icon.png) no-repeat;
}
.list-icon {
display: inline-block;
width: 14px;

View File

@@ -5,7 +5,6 @@ body.no-header {
}
@mixin active {
color: $blue;
@include linear-gradient(top, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0));
background-color: rgba(255, 255, 255, .3);
@include box-shadow(0 -1px 0 rgba(0, 0, 0, .2) inset, 0 1px 0 #fff inset);

View File

@@ -65,6 +65,9 @@
}
.component.editing {
border-left: 1px solid $mediumGrey;
border-right: 1px solid $mediumGrey;
.xmodule_display {
display: none;
}

View File

@@ -188,6 +188,7 @@
&.editing {
border: 1px solid $lightBluishGrey2;
z-index: 9999;
.drag-handle,
.component-actions {

View File

@@ -4,14 +4,10 @@
padding: 30px 40px;
}
.new-user-button {
margin-bottom: 15px;
}
.new-user-form {
display: none;
padding: 15px 20px;
background: $mediumGrey;
background-color: $lightBluishGrey2;
#result {
display: none;
@@ -41,12 +37,12 @@
.add-button {
@include blue-button;
padding: 6px 20px 8px;
padding: 5px 20px 9px;
}
.cancel-button {
@include white-button;
padding: 6px 20px 8px;
padding: 5px 20px 9px;
}
}