mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: #6934 allow whole TreeDropdownField to be clicked
This commit is contained in:
parent
767aef9794
commit
39d3761eb9
@ -1,6 +1,6 @@
|
|||||||
div.TreeDropdownField { width: 400px; background: #fff; border: 1px solid #aaa; cursor: pointer; overflow: hidden; }
|
div.TreeDropdownField { width: 400px; background: #fff; border: 1px solid #aaa; cursor: pointer; overflow: hidden; }
|
||||||
div.TreeDropdownField input { border: none; background: none; padding: 0; margin: 0; }
|
div.TreeDropdownField input { border: none; background: none; padding: 0; margin: 0; }
|
||||||
div.TreeDropdownField .treedropdownfield-title { float: left; padding: 7px; line-height: 16px; overflow: hidden; }
|
div.TreeDropdownField .treedropdownfield-title { float: left; padding: 7px; width: 90%; line-height: 16px; overflow: hidden; outline: none; }
|
||||||
div.TreeDropdownField .treedropdownfield-panel { clear: left; position: absolute; overflow: auto; display: none; cursor: default; border: 1px solid #aaa; border-top: none; margin: 1px 0 0 -1px; /* account for border on container div */ height: 200px; background-color: #fff; z-index: 50; -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); -o-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); }
|
div.TreeDropdownField .treedropdownfield-panel { clear: left; position: absolute; overflow: auto; display: none; cursor: default; border: 1px solid #aaa; border-top: none; margin: 1px 0 0 -1px; /* account for border on container div */ height: 200px; background-color: #fff; z-index: 50; -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); -o-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); }
|
||||||
div.TreeDropdownField .treedropdownfield-panel ul.tree { margin: 0; }
|
div.TreeDropdownField .treedropdownfield-panel ul.tree { margin: 0; }
|
||||||
div.TreeDropdownField .treedropdownfield-panel ul.tree a { font-size: 12px; }
|
div.TreeDropdownField .treedropdownfield-panel ul.tree a { font-size: 12px; }
|
||||||
|
@ -8,17 +8,17 @@ table.details tr { background: #eeeee0; }
|
|||||||
|
|
||||||
p { line-height: 1.5em; margin-top: 0.5em; margin-bottom: 1.0em; }
|
p { line-height: 1.5em; margin-top: 0.5em; margin-bottom: 1.0em; }
|
||||||
|
|
||||||
h1 { margin: 0px 0px 5px; font: 165% verdana, arial, helvetica; }
|
h1 { margin: 0px 0px 5px; font: 165% verdana,arial,helvetica; }
|
||||||
|
|
||||||
h2 { margin-top: 1em; margin-bottom: 0.5em; font: bold 125% verdana, arial, helvetica; }
|
h2 { margin-top: 1em; margin-bottom: 0.5em; font: bold 125% verdana,arial,helvetica; }
|
||||||
|
|
||||||
h3 { margin-bottom: 0.5em; font: bold 115% verdana, arial, helvetica; }
|
h3 { margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica; }
|
||||||
|
|
||||||
h4 { margin-bottom: 0.5em; font: bold 100% verdana, arial, helvetica; }
|
h4 { margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica; }
|
||||||
|
|
||||||
h5 { margin-bottom: 0.5em; font: bold 100% verdana, arial, helvetica; }
|
h5 { margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica; }
|
||||||
|
|
||||||
h6 { margin-bottom: 0.5em; font: bold 100% verdana, arial, helvetica; }
|
h6 { margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica; }
|
||||||
|
|
||||||
.Error { font-weight: bold; color: red; }
|
.Error { font-weight: bold; color: red; }
|
||||||
|
|
||||||
|
@ -243,9 +243,16 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.TreeDropdownField .treedropdownfield-toggle-panel-link, .TreeDropdownField span.treedropdownfield-title').entwine({
|
$('.TreeDropdownField').entwine({
|
||||||
|
onclick: function(e) {
|
||||||
|
this.togglePanel();
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.TreeDropdownField .treedropdownfield-panel').entwine({
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
this.getField().togglePanel();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -15,8 +15,10 @@ div.TreeDropdownField {
|
|||||||
.treedropdownfield-title {
|
.treedropdownfield-title {
|
||||||
float: left;
|
float: left;
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
|
width: 90%;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.treedropdownfield-panel {
|
.treedropdownfield-panel {
|
||||||
|
Loading…
Reference in New Issue
Block a user