Commit Graph

95 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
9eea50ef3d ESLint automatic fixes
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-12 05:02:30 -03:00
Maurício Meneghini Fauth
2936492555 Revert "Replace .focus() with .on()"
This reverts commit d18076eb96.

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-12 02:40:33 -03:00
Maurício Meneghini Fauth
d18076eb96 Replace .focus() with .on()
.focus() event shorthand is deprecated

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-12 02:17:51 -03:00
Maurício Meneghini Fauth
0ff776a6cf Replace .mousedown() with .on()
.mousedown() event shorthand is deprecated

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-12 01:15:28 -03:00
Maurício Meneghini Fauth
c0c233f8ef Replace .keydown() with .on()
.keydown() event shorthand is deprecated

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-12 00:36:24 -03:00
Maurício Meneghini Fauth
8f8e3c26c9 Replace .click() with .on()
.click() event shorthand is deprecated

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-11 23:58:35 -03:00
Maurício Meneghini Fauth
f4fedc20ee Replace .change() with .on()
.change() event shorthand is deprecated

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-11 20:45:36 -03:00
Lakshay arora
af32d61663 Set console max height, issue #14022
Changed:
	js/console.js
Before showing the console, set the height to minimum between current set height and height of the display window.
Signed-Off-By: Lakshay arora (b16060@students.iitmandi.ac.in)
2018-02-18 04:38:43 +05:30
Michal Čihař
cbbf0d5ccf Integrate debug console settings into user preferences
Issue #13466
Issue #11688

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-28 13:52:07 +01:00
Michal Čihař
b30ab4af58 Generalize code for console preferences
We can reuse and better cache locally the operations to avoid additional
roundtrip to server when changing settings.

Issue #13466
Issue #11688

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-28 13:45:14 +01:00
Michal Čihař
dc51711a47 Store console configuration in user preferences
Issue #13466
Issue #11688

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-28 13:31:17 +01:00
Michal Čihař
e9840c7130 Store console height in user preferences
Issue #13466
Issue #11688

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-28 13:19:03 +01:00
Michal Čihař
feb3b1c574 Store console mode in userconfig
Issue #13466
Issue #11688

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-28 13:19:03 +01:00
Maurício Meneghini Fauth
3a00dd69a5 Change ESLint's one-var to error
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-25 22:46:20 -03:00
Maurício Meneghini Fauth
ef99fef8d6 Change ESLint's eqeqeq to error
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-25 21:30:14 -03:00
Maurício Meneghini Fauth
00e1ca9b66 Automatic fixes by ESLint
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-25 14:22:35 -03:00
Michal Čihař
f7bb752573 Automatically add token to all AJAX requests
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>
2017-06-13 11:45:40 +02:00
Michal Čihař
bf60780976 Fix passing token in SQL console
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-06-13 10:28:57 +02:00
Michal Čihař
135e82cc69 Replace jquery.cookie.js with js.cookie.js
The latter one is suggested replacement for no longer maintained
jquery.cookie.js.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-06-13 10:19:09 +02:00
Dan Ungureanu
1ca19f0ac1 Replaced deprecated jQuery calls.
'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>
2017-04-10 13:06:32 +03:00
Michal Čihař
a079a55282 Remove duplicite error handler
There is already ajaxError in js/ajax.js, we can do handling there.

Issue #13130

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-04-05 09:33:10 +02:00
Michal Čihař
f5655f4429 Do not try to parse error response
Issue #13130

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-04-05 09:33:06 +02:00
Michal Čihař
248a42af7e Fixed javascript confirmation of dangerous queries
The confirmations did work properly only in console and not anywhere
else.

- the check function was expecting textarea, while it got text from
  other calls
- the check for empty form was completely outdated, but that seems to
  lead only to dead code and no breakage
- for the inline editor, the form was not properly focused and restored
  on confirmation error

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-03-01 09:33:18 +01:00
Michal Čihař
bca2e1c588 Use standard way for getting token value in designer
This way we share code with rest of phpMyAdmin, not building it again.

Fixes #12804

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-02-13 15:00:11 +01:00
Michal Čihař
ca03659f5e Provide tracback on error
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-02-02 13:52:49 +01:00
Michal Čihař
c77d8cff25 Do not use deprecated $.parseJSON
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-21 14:27:39 +01:00
Deven Bansod
d15e9a40a4 Merge branch 'QA_4_6' 2016-10-24 18:17:15 +05:30
Deven Bansod
694d846b64 ajaxOptions.dataType can also return multiple space-separated values
Ref : http://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings

Fix error in d344a8f
Fix #12454

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-10-24 18:11:04 +05:30
Deven Bansod
555d5104b5 Merge branch 'QA_4_6'
Conflicts:
	po/id.po
	po/ko.po
2016-10-17 13:41:21 +05:30
Deven Bansod
334910216e Check if the function actually has arguments or not
Fix #12639

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-10-17 13:36:09 +05:30
Michal Čihař
22b19b5d69 Merge branch 'QA_4_6-security' into master-security 2016-06-20 10:45:26 +02:00
Michal Čihař
364732e309 Escape error message from server
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-20 10:11:25 +02:00
Michal Čihař
b24347ca8f Merge branch 'QA_4_6' 2016-05-11 11:32:36 +02:00
Michal Čihař
d344a8f7ae Do not catch HTML requests in console
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-11 10:55:24 +02:00
Achilles-96
4073e4676f Fixes #11865 partially-Added support for shortcuts
Signed-off-by: Raghuram Vadapalli <raghuram.vadapalli@research.iiit.ac.in>
2016-02-22 17:06:23 +05:30
Marc Delisle
d008352582 IE 8 compatibility in console
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-12-10 12:18:38 -05:00
Hugues Peccatte
e8e70358d3 revert jQuery selector modification
revert $('#pma_console_options input[name=always_expand]') modification
2015-08-01 17:52:40 +02:00
Hugues Peccatte
13e43c82bd Replace inefficient jQuery selectors.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-07-30 21:56:22 +02:00
Dan Ungureanu
d1f494219a Enabled lint for console.
Updated sql-parser library to udan11/sql-parser@5e554b3.

Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
2015-07-19 14:53:02 +03:00
Nisarg Jhaveri
01aee84315 Format backtrace when required, debug console
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-07-12 18:24:30 +05:30
Marc Delisle
6365442c5e Merge branch 'QA_4_4' 2015-07-04 07:25:06 -04:00
Marc Delisle
ee650720cb bug #4974 Creating a database from console doesn't update navigation panel
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-07-04 07:24:39 -04:00
Nisarg Jhaveri
befe89ad4e Make Scrutinizer Happy
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-06-30 21:58:21 +05:30
Madhura Jayaratne
d9afc6a7ec Merge branch 'QA_4_4' 2015-06-26 14:07:00 +05:30
Madhura Jayaratne
e453cb818b bug #4969 Autoload from prefs_storage not behaving properly
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-06-26 14:03:18 +05:30
Nisarg Jhaveri
b85690cfe6 Fix scrutinizer issues, console SQL debugging
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-06-19 21:22:22 +05:30
Nisarg Jhaveri
2a08016eab Ability to sort queries in console SQL debugging
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-06-19 20:19:57 +05:30
Nisarg Jhaveri
ce55e4acd1 Show percentage of time taken in console SQL debug
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-06-19 12:07:09 +05:30
Nisarg Jhaveri
d608832a9d Group/Ungroup queries in console SQL debug
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-06-18 20:23:53 +05:30
Nisarg Jhaveri
e524023def SQL debugging in console
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-06-18 15:52:13 +05:30