More directory selection fixes

This commit is contained in:
Ruud
2011-09-06 10:46:07 +02:00
parent 120ef730b8
commit 630e79ccb6
3 changed files with 30 additions and 10 deletions
+4 -3
View File
@@ -66,7 +66,8 @@ config = [{
{ {
'name': 'data_dir', 'name': 'data_dir',
'label': 'Data dir', 'label': 'Data dir',
'description': 'Where cache/logs/etc are stored.', 'type': 'directory',
'description': 'Where cache/logs/etc are stored. Keep empty for <strong>./_data</strong>.',
}, },
{ {
'name': 'url_base', 'name': 'url_base',
@@ -78,13 +79,13 @@ config = [{
'name': 'permission_folder', 'name': 'permission_folder',
'default': 0755, 'default': 0755,
'label': 'Folder CHMOD', 'label': 'Folder CHMOD',
'description': 'Permission for creating/copying folders', 'description': 'Permission (octal) for creating/copying folders.',
}, },
{ {
'name': 'permission_file', 'name': 'permission_file',
'default': 0755, 'default': 0755,
'label': 'File CHMOD', 'label': 'File CHMOD',
'description': 'Permission for creating/copying files', 'description': 'Permission (octal) for creating/copying files',
}, },
], ],
}, },
@@ -549,6 +549,15 @@ Option.Directory = new Class({
} }
}), }),
new Element('div.actions').adopt( new Element('div.actions').adopt(
new Element('a.clear.button', {
'text': 'Clear',
'events': {
'click': function(e){
self.input.set('text', '');
self.hideBrowser(e, true);
}
}
}),
new Element('a.cancel', { new Element('a.cancel', {
'text': 'Cancel', 'text': 'Cancel',
'events': { 'events': {
+17 -7
View File
@@ -110,7 +110,7 @@
.page.settings .ctrlHolder .formHint { .page.settings .ctrlHolder .formHint {
float: right; float: right;
width: 47%; width: 47%;
margin: -25px 0; margin: -18px 0;
padding: 0; padding: 0;
color: #fff; color: #fff;
} }
@@ -219,9 +219,10 @@
} }
.page.settings .directory_list ul { .page.settings .directory_list ul {
width: 100%; width: 92%;
height: 200px; height: 300px;
overflow: auto; overflow: auto;
margin: 0 4%;
} }
.page.settings .directory_list li { .page.settings .directory_list li {
@@ -241,15 +242,14 @@
.page.settings .directory_list .actions { .page.settings .directory_list .actions {
clear: both; clear: both;
padding: 10px; padding: 4% 4% 2%;
min-height: 25px;
} }
.page.settings .directory_list .actions {}
.page.settings .directory_list .actions label { .page.settings .directory_list .actions label {
float: right; float: right;
width: auto; width: auto;
padding: 5px 3px; padding: 0;
} }
.page.settings .directory_list .actions .inlay { .page.settings .directory_list .actions .inlay {
margin: -2px 0 0 7px; margin: -2px 0 0 7px;
@@ -259,10 +259,14 @@
font-weight: bold; font-weight: bold;
width: 160px; width: 160px;
display: inline-block; display: inline-block;
padding: 0;
line-height: 120%;
vertical-align: top;
} }
.page.settings .directory_list .actions:last-child { .page.settings .directory_list .actions:last-child {
float: right; float: right;
padding: 4%;
} }
.page.settings .directory_list .actions:last-child > span { .page.settings .directory_list .actions:last-child > span {
@@ -270,6 +274,12 @@
text-shadow: none; text-shadow: none;
} }
.page.settings .directory_list .actions:last-child > .clear {
left: -90%;
position: relative;
background-color: #af3128;
}
.page.settings .directory_list .actions:last-child > .cancel { .page.settings .directory_list .actions:last-child > .cancel {
font-weight: bold; font-weight: bold;
color: #ddd; color: #ddd;