Skip to content

Commit 6dc859c

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents b008cca + 49e2b08 commit 6dc859c

32 files changed

Lines changed: 52 additions & 117 deletions

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ phpMyAdmin - ChangeLog
3030
- issue #16197 Replace the master/slave terminology
3131
- issue #17257 Replace libraries/vendor_config.php constants with an array
3232
- issue Add the Bootstrap theme
33+
- issue #17499 Remove stickyfilljs JavaScript dependency
3334

3435
5.1.4 (not yet released)
3536
- issue #17287 Fixed sorting the database list with "statistics" enabled on "Data" column creates a PHP type error

doc/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@ to plot' field. Once you have decided over your criteria, click 'Go'
19051905
to display the plot.
19061906

19071907
After the plot is generated, you can use the
1908-
mousewheel to zoom in and out of the plot. In addition, panning
1908+
mouse wheel to zoom in and out of the plot. In addition, panning
19091909
feature is enabled to navigate through the plot. You can zoom-in to a
19101910
certain level of detail and use panning to locate your area of
19111911
interest. Clicking on a point opens a dialogue box, displaying field

js/src/gis_data_editor.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,10 @@ function loadJSAndGISEditor (value, field, type, inputName) {
9696
var head = document.getElementsByTagName('head')[0];
9797
var script;
9898

99-
// Loads a set of small JS file needed for the GIS editor
100-
var smallScripts = ['js/vendor/jquery/jquery.mousewheel.js', 'js/dist/table/gis_visualization.js'];
101-
102-
for (var i = 0; i < smallScripts.length; i++) {
103-
script = document.createElement('script');
104-
script.type = 'text/javascript';
105-
script.src = smallScripts[i];
106-
head.appendChild(script);
107-
}
99+
script = document.createElement('script');
100+
script.type = 'text/javascript';
101+
script.src = 'js/dist/table/gis_visualization.js';
102+
head.appendChild(script);
108103

109104
// OpenLayers.js is BIG and takes time. So asynchronous loading would not work.
110105
// Load the JS and do a callback to load the content for the GIS Editor.

js/src/sql.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* @test-module Sql
88
*/
99

10-
/* global Stickyfill */
1110
/* global isStorageSupported */ // js/config.js
1211
/* global codeMirrorEditor */ // js/functions.js
1312
/* global makeGrid */ // js/makegrid.js
@@ -1089,9 +1088,3 @@ AJAX.registerOnload('sql.js', function () {
10891088
Sql.makeProfilingChart();
10901089
Sql.initProfilingTables();
10911090
});
1092-
1093-
/**
1094-
* Polyfill to make table headers sticky.
1095-
*/
1096-
var elements = $('.sticky');
1097-
Stickyfill.add(elements);

js/src/table/gis_visualization.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* @fileoverview functions used for visualizing GIS data
33
*
44
* @requires jquery
5-
* @requires vendor/jquery/jquery.mousewheel.js
65
*/
76

87
/* global drawOpenLayers */ // templates/table/gis_visualization/gis_visualization.twig
@@ -148,6 +147,9 @@ function getRelativeCoords (e) {
148147
};
149148
}
150149

150+
/**
151+
* @param {WheelEvent} event
152+
*/
151153
function onGisMouseWheel (event) {
152154
if (event.deltaY === 0) {
153155
return;
@@ -169,7 +171,7 @@ function onGisMouseWheel (event) {
169171
*
170172
* Actions Ajaxified here:
171173
*
172-
* Zooming in and zooming out on mousewheel movement.
174+
* Zooming in and zooming out on mouse wheel movement.
173175
* Panning the visualization on dragging.
174176
* Zooming in on double clicking.
175177
* Zooming out on clicking the zoom out button.

libraries/classes/Controllers/Database/SearchController.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ public function __invoke(): void
3838
$GLOBALS['tooltip_aliasname'] = $GLOBALS['tooltip_aliasname'] ?? null;
3939
$GLOBALS['pos'] = $GLOBALS['pos'] ?? null;
4040

41-
$this->addScriptFiles([
42-
'database/search.js',
43-
'vendor/stickyfill.min.js',
44-
'sql.js',
45-
'makegrid.js',
46-
]);
41+
$this->addScriptFiles(['database/search.js', 'sql.js', 'makegrid.js']);
4742

4843
$this->checkParameters(['db']);
4944

libraries/classes/Controllers/Database/SqlController.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ public function __invoke(): void
3434
$GLOBALS['back'] = $GLOBALS['back'] ?? null;
3535
$GLOBALS['errorUrl'] = $GLOBALS['errorUrl'] ?? null;
3636

37-
$this->addScriptFiles([
38-
'makegrid.js',
39-
'vendor/jquery/jquery.uitablefilter.js',
40-
'vendor/stickyfill.min.js',
41-
'sql.js',
42-
]);
37+
$this->addScriptFiles(['makegrid.js', 'vendor/jquery/jquery.uitablefilter.js', 'sql.js']);
4338

4439
$pageSettings = new PageSettings('Sql');
4540
$this->response->addHTML($pageSettings->getErrorHTML());

libraries/classes/Controllers/Server/SqlController.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ public function __invoke(): void
3838
{
3939
$GLOBALS['errorUrl'] = $GLOBALS['errorUrl'] ?? null;
4040

41-
$this->addScriptFiles([
42-
'makegrid.js',
43-
'vendor/jquery/jquery.uitablefilter.js',
44-
'vendor/stickyfill.min.js',
45-
'sql.js',
46-
]);
41+
$this->addScriptFiles(['makegrid.js', 'vendor/jquery/jquery.uitablefilter.js', 'sql.js']);
4742

4843
$pageSettings = new PageSettings('Sql');
4944
$this->response->addHTML($pageSettings->getErrorHTML());

libraries/classes/Controllers/Sql/SqlController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public function __invoke(): void
7777
'vendor/jquery/jquery.uitablefilter.js',
7878
'table/change.js',
7979
'indexes.js',
80-
'vendor/stickyfill.min.js',
8180
'gis_data_editor.js',
8281
'multi_column_sort.js',
8382
]);

libraries/classes/Controllers/Table/ChangeController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ public function __invoke(): void
139139

140140
$this->addScriptFiles([
141141
'makegrid.js',
142-
'vendor/stickyfill.min.js',
143142
'sql.js',
144143
'table/change.js',
145144
'vendor/jquery/additional-methods.js',

0 commit comments

Comments
 (0)