From 7ef6fbaabc39289ee743811e4a62fedd343b8a8a Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sat, 12 Mar 2011 06:09:09 +0530 Subject: [PATCH] Fix highlighting for save/hide of inline-edit --- js/sql.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/sql.js b/js/sql.js index 9b5edf99d..b513ffb28 100644 --- a/js/sql.js +++ b/js/sql.js @@ -441,6 +441,8 @@ $(document).ready(function() { $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 = []; var blob_index = []; @@ -919,7 +921,9 @@ $(document).ready(function() { } PMA_ajaxShowMessage(data.message); - $this_td.removeClass('inline_edit_active').addClass('inline_edit_anchor'); + $this_td.removeClass('inline_edit_active hover').addClass('inline_edit_anchor'); + $this_td.parent().removeClass('hover') + $this_td.siblings().removeClass('hover'); $input_siblings.each(function() { // Inline edit post has been successful.