Merge remote-tracking branch 'origin/master'

This commit is contained in:
Pootle server
2011-04-30 22:40:06 +02:00
2 changed files with 4 additions and 1 deletions

View File

@@ -387,7 +387,7 @@ $(document).ready(function() {
if ($this_element.is('.textfield')) {
// do not remove the 'value' attribute for ENUM columns
if ($this_element.closest('tr').find('span.column_type').html() != 'enum') {
$this_element.attr('value', '');
$this_element.attr('value', $this_element.closest('tr').find('span.default_value').html());
}
$this_element
.unbind('change')

View File

@@ -694,6 +694,9 @@ foreach ($rows as $row_id => $vrow) {
// HTML attribute
echo ' <td>' . "\n";
// Will be used by js/tbl_change.js to set the default value
// for the "Continue insertion" feature
echo '<span class="default_value hide">' . $special_chars . '</span>';
if ($foreignData['foreign_link'] == true) {
echo $backup_field . "\n";
?>