Hi Marc,
Le 2011-06-18 13:24, Thilanka Kaushalya a écrit :
> Hi Marc,> 1. I used "*PMA_ajaxShowMessage(PMA_messages['strNoRowSelected']);*"
>
> I pushed my first set of changes to the repo on ajaxify the
> table->multi_row->change option, please check that. For that I have used
> some existing events in sql.js file.
>
> When I submit the "*#insetForm*" I used
> "*$("#pageselector").trigger('change');*" for reload the
> "#*resultsForm*" table because since this is related to multiple rows
> and there are many actions in "*#insertForm*" such as "*Save*" and "*add
> as a new row*", it is better to update the table.
>
> And there are few issues with this.
>
> to show a message when user not selected a row and click onThilanka,
> change. Is this okay or should I change it.
this is fine but please use the already existing 'No rows selected'
message, it's better to reuse messages to avoid too much work for our
translators.
> 2. When a row get changed I used following actions to reload the
> "#*resultsForm*"I'm not sure I understand your question. In my test, the original
>
> $("#pageselector").trigger('change');
> $("#result_query").remove();
> $("#sqlqueryresults").prepend(data.sql_query);
>
> But since last two actions runs in the middle of first
> trigger I cannot remove the *result_query * with the updated row message
> after the table get reloaded. I cannot find why this happens. Please can
> you help me on this.
result_query div has been removed (it contained a SELECT) then with the
.prepend() it reappears with the UPDATE queries. The only problem I see
is an empty div with class notice at the beginning of the result_query div.
Maybe I did not test the same way you did.
> Thank you.
>
> Regards,
> Thilanka.
>
Also, the first time the "Change table" panel is displayed, I see many
notices of undefined variable submit_mult at the bottom of the panel.