1. Show ajax errors at the bottom of the page, instead of showing them in a popup.
2. Add copy query button for errors in processing sql queries.
Signed-off-by: Lakshay arora <arora.lakshya123@gmail.com>
The width += 1 does not apply to Safari, either.
Safari requires min-width and max-width to be set. “width” is not honored.
Add a line break to template so comments stay on separate line.
Moved browser checks to higher scope; the user agent only needs to be checked once, not once per cell.
Signed-off-by: Bob Terrell <bob.terrell@acordex.com>
* Handling of autosaved query and making get auto-saved query button functional
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
* Basic functionality of show this query here again added
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
* Show this query here again checkbox working properly
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
* deleting auto_saved_sql on clicking submit query button
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
* javascript error handled
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
* javascript error of JSON undefined removed
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
It can include leading question mark and we should deal with it in all
locations.
Fixes#13913
Signed-off-by: Michal Čihař <michal@cihar.com>
(cherry picked from commit 1fc566fd90)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
We no longer create form, but rather rather tag the link to be handled
as POST on the client side.
This way the code is way simpler without need on any special case
handling on server side.
Fixes#13649
Signed-off-by: Michal Čihař <michal@cihar.com>
(cherry picked from commit 3b9fb2b664)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
We no longer create form, but rather rather tag the link to be handled
as POST on the client side.
This way the code is way simpler without need on any special case
handling on server side.
Fixes#13649
Signed-off-by: Michal Čihař <michal@cihar.com>
Honestly I don't understand the old code, but it breaks on fields with
applied transformations, while using simply text() works fine.
Signed-off-by: Michal Čihař <michal@cihar.com>
This way we don't have to do the same in every AJAX request, it can be
done just once in shared handler.
Signed-off-by: Michal Čihař <michal@cihar.com>
'bind' and 'unbind', 'delegate' and 'undelegate' have been deprecated in
favor of 'on' and 'off'.
Partially fixes#13166.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
..when available rather than in cookie as we do not want to send huge
cookies with SQL query there and back.
Issue #12251
Issue phpmyadmin/docker#32
Signed-off-by: Michal Čihař <michal@cihar.com>