CSS styles for null checkbox and for NULL values in table cells.
This commit is contained in:
@@ -436,7 +436,7 @@ $(document).ready(function() {
|
||||
|
||||
if($this_field.is(':not(.not_null)')){
|
||||
// add a checkbox to mark null for all the field that are nullable.
|
||||
$this_field.html('<div>Null :<input type="checkbox" class="checkbox_null_'+ field_name +'"></div>');
|
||||
$this_field.html('<div class="null_div">Null :<input type="checkbox" class="checkbox_null_'+ field_name +'"></div>');
|
||||
// check the 'checkbox_null_<field_name>' if the value is null
|
||||
if($this_field.is('.null')) {
|
||||
$('.checkbox_null_' + field_name).attr('checked', true);
|
||||
@@ -454,7 +454,7 @@ $(document).ready(function() {
|
||||
})
|
||||
|
||||
} else {
|
||||
$this_field.html('');
|
||||
$this_field.html('<div class="null_div"></div>');
|
||||
}
|
||||
|
||||
// In each input sibling, wrap the current value in a textarea
|
||||
|
@@ -159,6 +159,12 @@ fieldset.tblFooters {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
div.null_div {
|
||||
height: 20px;
|
||||
text-align: center;
|
||||
font-style:normal;
|
||||
}
|
||||
|
||||
fieldset .formelement {
|
||||
float: <?php echo $left; ?>;
|
||||
margin-<?php echo $right; ?>: 0.5em;
|
||||
@@ -235,6 +241,14 @@ th.condition {
|
||||
border: 1px solid <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>;
|
||||
}
|
||||
|
||||
/**
|
||||
* cells with the value NULL
|
||||
*/
|
||||
td.null {
|
||||
font-style: italic;
|
||||
text-align: <?php echo $right; ?>;
|
||||
}
|
||||
|
||||
table .value {
|
||||
text-align: <?php echo $right; ?>;
|
||||
white-space: normal;
|
||||
|
Reference in New Issue
Block a user