making it worse!

This commit is contained in:
Andy Miller
2014-09-22 22:38:17 -06:00
parent b22618b3a2
commit 0b69ed4c7e
4 changed files with 18 additions and 16 deletions

View File

@@ -198,7 +198,7 @@ class AdminController
if ($filename) {
$targetPath = $page->path().'/'.$filename;
if (unlink($targetPath)) {
if (file_exists($targetPath) && unlink($targetPath)) {
$this->admin->json_response = ['success', 'File deleted: '.$filename];
} else {
$this->admin->json_response = ['error', 'File could not be deleted: '.$filename];

View File

@@ -1546,7 +1546,7 @@ body.remodal_active .remodal {
.dropzone .dz-preview .dz-error-mark {
background-color: #d55a4e; }
.dropzone .dz-preview .dz-error-mark::after {
content: '\f00d'; }
content: '\f12a'; }
.dropzone .dz-preview .dz-progress {
position: absolute;
top: 100px;
@@ -1566,13 +1566,14 @@ body.remodal_active .remodal {
.dropzone .dz-preview .dz-error-message {
display: none;
position: absolute;
top: -5px;
left: -20px;
background: rgba(245, 245, 245, 0.8);
top: 0;
left: 0;
right: 0;
font-size: 0.9rem;
line-height: 1.2;
padding: 8px 10px;
color: #800;
min-width: 140px;
max-width: 500px;
background: #f6f6f6;
color: #d55a4e;
z-index: 500; }
.dropzone .dz-preview.dz-processing .dz-progress {
display: block; }

File diff suppressed because one or more lines are too long

View File

@@ -83,7 +83,7 @@ $error-color: #D55A4E;
.dz-error-mark {
background-color: $error-color;
&::after {
content: '\f00d';
content: '\f12a';
}
}
@@ -110,13 +110,14 @@ $error-color: #D55A4E;
.dz-error-message {
display: none;
position: absolute;
top: -5px;
left: -20px;
background: rgba(245,245,245,0.8);
top: 0;
left: 0;
right: 0;
font-size: 0.9rem;
line-height: 1.2;
padding: 8px 10px;
color: #800;
min-width: 140px;
max-width: 500px;
background: lighten($content-bg,3%);
color: $error-color;
z-index: 500;
}