Code formatting. Make the code more readable.
This commit is contained in:
@@ -439,10 +439,12 @@ $(document).ready(function() {
|
||||
$this_children = $(this).siblings('span.nowrap').children('a').children('span.nowrap');
|
||||
$this_children.empty();
|
||||
$this_children.text(PMA_messages['strInlineEdit']);
|
||||
|
||||
var $this_hide = $(this).parent();
|
||||
$this_hide.removeClass("inline_edit_active hover").addClass("inline_edit_anchor");
|
||||
$this_hide.parent().removeClass("hover");
|
||||
$this_hide.siblings().removeClass("hover");
|
||||
|
||||
var last_column = $this_hide.siblings().length;
|
||||
var txt = '';
|
||||
for(var i = 4; i < last_column; i++) {
|
||||
@@ -461,18 +463,16 @@ $(document).ready(function() {
|
||||
});
|
||||
} else {
|
||||
var txt = '';
|
||||
var rows=$(this).parent().siblings().length;;
|
||||
var rows = $(this).parent().siblings().length;
|
||||
|
||||
$(this).append(hide_link);
|
||||
$('#table_results tbody tr td a#hide').click(function() {
|
||||
|
||||
var pos = $(this).parent().index();
|
||||
var $chg_submit = $(this).parent().children('span.nowrap').children('a').children('span.nowrap');
|
||||
$chg_submit.empty();
|
||||
$chg_submit.append(data_vt);
|
||||
|
||||
var $this_row = $(this).parent().parent();
|
||||
//alert(pos);
|
||||
if(parseInt(pos) % 2 == 0) {
|
||||
$this_row.siblings("tr:eq(3) td:eq(" + pos + ")").removeClass("odd edit_row_anchor row_" + pos + " vpointer vmarker inline_edit_active").addClass("odd edit_row_anchor row_" + pos + " vpointer vmarker inline_edit_anchor");
|
||||
|
||||
@@ -481,7 +481,6 @@ $(document).ready(function() {
|
||||
$this_row.siblings("tr:eq(3) td:eq(" + pos + ")").removeClass("even edit_row_anchor row_" + pos + " vpointer vmarker inline_edit_active").addClass("even edit_row_anchor row_" + pos + " vpointer vmarker inline_edit_anchor");
|
||||
|
||||
$this_row.siblings("tr:eq(3) td:eq(" + pos + ")").removeClass("even edit_row_anchor row_" + pos + " vpointer vmarker inline_edit_active hover").addClass("even edit_row_anchor row_" + pos + " vpointer vmarker inline_edit_anchor");
|
||||
|
||||
}
|
||||
for( var i = 6; i <= rows + 2; i++){
|
||||
if( $this_row.siblings("tr:eq(" + i + ") td:eq(" + pos + ")").hasClass("inline_edit") == false) {
|
||||
@@ -494,7 +493,6 @@ $(document).ready(function() {
|
||||
$(this).prev().remove();
|
||||
$(this).prev().remove();
|
||||
$(this).remove();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user