-Bug #3200692 Second click on Inline edit

-Bug #3200579 Hiding Inline edit problematic for text/geometry/blob:
partial fix
This commit is contained in:
onebighack
2011-03-06 06:09:52 -05:00
committed by Marc Delisle
parent 74a61f61da
commit 1b94d12c3e

View File

@@ -438,10 +438,13 @@ $(document).ready(function() {
var txt=[];
for(var i=4; i < last_column; i++){
txt[i-4] = $this_hide.siblings("td:eq(" + i + ")").children(' .original_data').html();
}
for (var i=4; i < last_column; i++){
$this_hide.siblings("td:eq(" + i + ")").empty();
$this_hide.siblings("td:eq(" + i + ")").append(txt[i-4]);
if($this_hide.siblings("td:eq(" + i + ")").children().length !=0){
$this_hide.siblings("td:eq(" + i + ")").empty();
$this_hide.siblings("td:eq(" + i + ")").append(txt[i-4]);
}
}
$(this).prev().prev().remove();
$(this).prev().remove();
@@ -878,7 +881,8 @@ $(document).ready(function() {
for ( var i=0;i<=2;i++) { $del_hide.next().remove(); }
if(disp_mode!='vertical'){
$chg_submit.empty();
$chg_submit.text(PMA_messages['strInlineEdit']);
$chg_submit.html('<span class="nowrap"></span>');
$chg_submit.children('span.nowrap').text(PMA_messages['strInlineEdit']);
}
else {
$chg_submit.children('span.nowrap').empty();