Unneeded wrapping of a jQuery object

This commit is contained in:
Marc Delisle
2010-12-30 07:45:15 -05:00
parent 45ba32fa18
commit c63d6a59a1

View File

@@ -60,9 +60,9 @@ $(document).ready(function() {
.after(data.sql_query);
//Remove the empty notice div generated due to a NULL query passed to PMA_showMessage()
var notice_class = $("#topmenucontainer").next("div").find('.notice');
if($(notice_class).text() == '') {
$(notice_class).remove();
var $notice_class = $("#topmenucontainer").next("div").find('.notice');
if ($notice_class.text() == '') {
$notice_class.remove();
}
$("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({