Inline edit links were not displayed in search results

This commit is contained in:
Marc Delisle
2010-12-30 06:50:23 -05:00
parent 0c979971a2
commit 818965f883
3 changed files with 26 additions and 5 deletions

View File

@@ -22,6 +22,25 @@ $(document).ready(function() {
cache: 'false'
});
/**
* Attach the {@link appendInlineAnchor} function to a custom event, which
* will be triggered manually everytime the table of results is reloaded;
*
* Needs appendInlineAnchor() which is defined in sql.js
* @memberOf jQuery
*/
$("#searchresults").live('appendAnchor',function() {
appendInlineAnchor();
})
/**
* Trigger the appendAnchor event to prepare the first table for inline edit
*
* @memberOf jQuery
*/
$("#searchresults").trigger('appendAnchor');
$('<a id="togglesearchform"></a>')
.html(PMA_messages['strShowSearchCriteria'])
.insertAfter('#tbl_search_form')
@@ -63,6 +82,7 @@ $(document).ready(function() {
if (typeof response == 'string') {
// found results
$("#searchresults").html(response);
$("#searchresults").trigger('appendAnchor');
$('#tbl_search_form').hide();
$('#togglesearchform')
// always start with the Show message