-Bug #3200692 Second click on Inline edit
-Bug #3200579 Hiding Inline edit problematic for text/geometry/blob: partial fix
This commit is contained in:
10
js/sql.js
10
js/sql.js
@@ -438,10 +438,13 @@ $(document).ready(function() {
|
|||||||
var txt=[];
|
var txt=[];
|
||||||
for(var i=4; i < last_column; i++){
|
for(var i=4; i < last_column; i++){
|
||||||
txt[i-4] = $this_hide.siblings("td:eq(" + i + ")").children(' .original_data').html();
|
txt[i-4] = $this_hide.siblings("td:eq(" + i + ")").children(' .original_data').html();
|
||||||
|
|
||||||
}
|
}
|
||||||
for (var i=4; i < last_column; i++){
|
for (var i=4; i < last_column; i++){
|
||||||
$this_hide.siblings("td:eq(" + i + ")").empty();
|
if($this_hide.siblings("td:eq(" + i + ")").children().length !=0){
|
||||||
$this_hide.siblings("td:eq(" + i + ")").append(txt[i-4]);
|
$this_hide.siblings("td:eq(" + i + ")").empty();
|
||||||
|
$this_hide.siblings("td:eq(" + i + ")").append(txt[i-4]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$(this).prev().prev().remove();
|
$(this).prev().prev().remove();
|
||||||
$(this).prev().remove();
|
$(this).prev().remove();
|
||||||
@@ -878,7 +881,8 @@ $(document).ready(function() {
|
|||||||
for ( var i=0;i<=2;i++) { $del_hide.next().remove(); }
|
for ( var i=0;i<=2;i++) { $del_hide.next().remove(); }
|
||||||
if(disp_mode!='vertical'){
|
if(disp_mode!='vertical'){
|
||||||
$chg_submit.empty();
|
$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 {
|
else {
|
||||||
$chg_submit.children('span.nowrap').empty();
|
$chg_submit.children('span.nowrap').empty();
|
||||||
|
Reference in New Issue
Block a user