CSS styles for null checkbox and for NULL values in table cells.

This commit is contained in:
Madhura Jayaratne
2011-02-20 00:46:29 +05:30
parent 8e64a94360
commit 81974e6d93
2 changed files with 16 additions and 2 deletions

View File

@@ -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