Skip to content

Commit

Permalink
Merge branch 'QA_4_8'
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Mar 29, 2019
2 parents 7a306af + 457fe82 commit 78c2a64
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Expand Up @@ -74,6 +74,8 @@ phpMyAdmin - ChangeLog
- issue #14853 Insert page should not allow entering things into virtual columns
- issue #15110 Fixed TypeError e.preventDefaulut is not a function
- issue #15115 Improved label in Settings export, clarifying that it's a JSON file
- issue #14816 Fixed [designer] Cannot read property 'style' of null
- issue Fixed [designer] Add new tables with database/table list modal

4.8.5 (2019-01-25)
- issue Developer debug data was saved to the PHP error log
Expand Down
24 changes: 18 additions & 6 deletions js/designer/move.js
Expand Up @@ -85,9 +85,6 @@ var grid_size = 10;

// window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP);
// ---CROSS
document.onmousedown = MouseDown;
document.onmouseup = MouseUp;
document.onmousemove = MouseMove;

var isIE = document.all && !window.opera;

Expand Down Expand Up @@ -566,7 +563,8 @@ function Add_Other_db_tables () {
'ajax_request' : true,
'dialog' : 'add_table',
'db' : db,
'table' : table
'table' : table,
'server': PMA_commonParams.get('server')
}, function (data) {
$new_table_dom = $(data.message);
$new_table_dom.find('a').first().remove();
Expand Down Expand Up @@ -598,7 +596,8 @@ function Add_Other_db_tables () {

$.post('sql.php', {
'ajax_request' : true,
'sql_query' : 'SHOW databases;'
'sql_query' : 'SHOW databases;',
'server': PMA_commonParams.get('server')
}, function (data) {
$(data.message).find('table.table_results.data.ajax').find('td.data').each(function () {
var val = $(this)[0].innerHTML;
Expand Down Expand Up @@ -628,7 +627,8 @@ function Add_Other_db_tables () {
$.post('sql.php', {
'ajax_request' : true,
'sql_query': sql_query,
'db' : db_name
'db' : db_name,
'server': PMA_commonParams.get('server')
}, function (data) {
$select_table.html('');
$(data.message).find('table.table_results.data.ajax').find('td.data').each(function () {
Expand Down Expand Up @@ -1947,6 +1947,9 @@ AJAX.registerTeardown('designer/move.js', function () {
$('#cancel_close_option').off('click');
$('#ok_new_rel_panel').off('click');
$('#cancel_new_rel_panel').off('click');
$("#page_content").off('mouseup');
$("#page_content").off('mousedown');
$("#page_content").off('mousemove');
});

AJAX.registerOnload('designer/move.js', function () {
Expand Down Expand Up @@ -2111,4 +2114,13 @@ AJAX.registerOnload('designer/move.js', function () {
$('input#cancel_new_rel_panel').on('click', function () {
document.getElementById('layer_new_relation').style.display = 'none';
});
$("#page_content").on('mousedown', function(e) {
MouseDown(e);
});
$("#page_content").on('mouseup', function(e) {
MouseUp(e);
});
$("#page_content").on('mousemove', function(e) {
MouseMove(e);
});
});

0 comments on commit 78c2a64

Please sign in to comment.