ESLINT fixes
Make eslint green for CI Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
457fe8284b
commit
c793b998a7
@ -281,7 +281,7 @@ var PMA_console = {
|
||||
PMA_console.setConfig('Mode', 'show');
|
||||
|
||||
var pmaConsoleHeight = Math.max(92, PMA_console.config.Height);
|
||||
pmaConsoleHeight = Math.min(PMA_console.config.Height, (window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight)-25);
|
||||
pmaConsoleHeight = Math.min(PMA_console.config.Height, (window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight) - 25);
|
||||
PMA_console.$consoleContent.css({ display:'block' });
|
||||
if (PMA_console.$consoleToolbar.hasClass('collapsed')) {
|
||||
PMA_console.$consoleToolbar.removeClass('collapsed');
|
||||
|
||||
@ -108,7 +108,7 @@ AJAX.registerOnload('db_operations.js', function () {
|
||||
* Change tables columns visible only if change tables is checked
|
||||
*/
|
||||
$('#span_change_all_tables_columns_collations').hide();
|
||||
$('#checkbox_change_all_tables_collations').on('click', function() {
|
||||
$('#checkbox_change_all_tables_collations').on('click', function () {
|
||||
$('#span_change_all_tables_columns_collations').toggle();
|
||||
});
|
||||
|
||||
|
||||
@ -1943,9 +1943,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');
|
||||
$('#page_content').off('mouseup');
|
||||
$('#page_content').off('mousedown');
|
||||
$('#page_content').off('mousemove');
|
||||
});
|
||||
|
||||
AJAX.registerOnload('designer/move.js', function () {
|
||||
@ -2110,13 +2110,13 @@ AJAX.registerOnload('designer/move.js', function () {
|
||||
$('input#cancel_new_rel_panel').click(function () {
|
||||
document.getElementById('layer_new_relation').style.display = 'none';
|
||||
});
|
||||
$("#page_content").on('mousedown', function(e) {
|
||||
$('#page_content').on('mousedown', function(e) {
|
||||
MouseDown(e);
|
||||
});
|
||||
$("#page_content").on('mouseup', function(e) {
|
||||
$('#page_content').on('mouseup', function(e) {
|
||||
MouseUp(e);
|
||||
});
|
||||
$("#page_content").on('mousemove', function(e) {
|
||||
$('#page_content').on('mousemove', function(e) {
|
||||
MouseMove(e);
|
||||
});
|
||||
});
|
||||
|
||||
@ -824,7 +824,7 @@ function PMA_makegrid (t, enableResize, enableReorder, enableVisib, enableGridEd
|
||||
});
|
||||
}
|
||||
// if some text is written in textbox automatically unmark the null checkbox and if it is emptied again mark the checkbox.
|
||||
$(g.cEdit).find('.edit_box').on('input', function() {
|
||||
$(g.cEdit).find('.edit_box').on('input', function () {
|
||||
if ($(g.cEdit).find('.edit_box').val() !== '') {
|
||||
$checkbox.prop('checked', false);
|
||||
} else {
|
||||
|
||||
@ -58,7 +58,7 @@ function removeColumnFromMultiSort (target, parent) {
|
||||
AJAX.registerOnload('keyhandler.js', function () {
|
||||
$('th.draggable.column_heading.pointer.marker a').on('click', function (event) {
|
||||
var url = $(this).parent().find('input').val();
|
||||
var argsep = PMA_commonParams.get('arg_separator')
|
||||
var argsep = PMA_commonParams.get('arg_separator');
|
||||
if (event.ctrlKey || event.altKey) {
|
||||
event.preventDefault();
|
||||
var params = removeColumnFromMultiSort(url, $(this).parent());
|
||||
|
||||
@ -293,8 +293,8 @@ AJAX.registerOnload('sql.js', function () {
|
||||
});
|
||||
|
||||
$('.table_results .column_heading a').each(function () {
|
||||
//Don't copy ordering number text within <small> tag
|
||||
textArea.value += $(this).clone().find('small').remove().end().text() + '\t';
|
||||
// Don't copy ordering number text within <small> tag
|
||||
textArea.value += $(this).clone().find('small').remove().end().text() + '\t';
|
||||
});
|
||||
|
||||
textArea.value += '\n';
|
||||
|
||||
12
js/u2f.js
12
js/u2f.js
@ -6,12 +6,12 @@ AJAX.registerOnload('u2f.js', function () {
|
||||
if ($inputReg.length > 0) {
|
||||
var $formReg = $inputReg.parents('form');
|
||||
$formReg.find('input[type=submit]').hide();
|
||||
setTimeout(function() {
|
||||
setTimeout(function () {
|
||||
// A magic JS function that talks to the USB device. This function will keep polling for the USB device until it finds one.
|
||||
var request = JSON.parse($inputReg.attr('data-request'));
|
||||
u2f.register(request.appId, [request], JSON.parse($inputReg.attr('data-signatures')), function(data) {
|
||||
u2f.register(request.appId, [request], JSON.parse($inputReg.attr('data-signatures')), function (data) {
|
||||
// Handle returning error data
|
||||
if(data.errorCode && data.errorCode !== 0) {
|
||||
if (data.errorCode && data.errorCode !== 0) {
|
||||
if (data.errorCode === 5) {
|
||||
PMA_ajaxShowMessage(PMA_messages.strU2FTimeout, false);
|
||||
} else {
|
||||
@ -32,14 +32,14 @@ AJAX.registerOnload('u2f.js', function () {
|
||||
if ($inputAuth.length > 0) {
|
||||
var $formAuth = $inputAuth.parents('form');
|
||||
$formAuth.find('input[type=submit]').hide();
|
||||
setTimeout(function() {
|
||||
setTimeout(function () {
|
||||
// Magic JavaScript talking to your HID
|
||||
// appid, challenge, authenticateRequests
|
||||
var request = JSON.parse($inputAuth.attr('data-request'));
|
||||
var handles = [request[0].keyHandle];
|
||||
u2f.sign(request[0].appId, request[0].challenge, request, function(data) {
|
||||
u2f.sign(request[0].appId, request[0].challenge, request, function (data) {
|
||||
// Handle returning error data
|
||||
if(data.errorCode && data.errorCode !== 0) {
|
||||
if (data.errorCode && data.errorCode !== 0) {
|
||||
if (data.errorCode === 5) {
|
||||
PMA_ajaxShowMessage(PMA_messages.strU2FTimeout, false);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user