Skip to content

Commit

Permalink
Commented code, debug statements and unused variable in Script.php is…
Browse files Browse the repository at this point in the history
… removed.

Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
  • Loading branch information
Piyush3079 committed Jul 7, 2018
1 parent 9666120 commit e324ecd
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 30 deletions.
1 change: 0 additions & 1 deletion js/src/ajax.js
Expand Up @@ -363,7 +363,6 @@ export let AJAX = {
* @return void
*/
responseHandler: function (data) {
// console.log(data);
if (typeof data === 'undefined' || data === null) {
return;
}
Expand Down
26 changes: 0 additions & 26 deletions js/src/index.js
Expand Up @@ -18,7 +18,6 @@ if (typeof files[firstPage] !== 'undefined') {
* Page load event handler
*/
$(function () {
console.log('check1');
var menuContent = $('<div></div>')
.append($('#serverinfo').clone())
.append($('#topmenucontainer').clone())
Expand Down Expand Up @@ -85,28 +84,3 @@ $(function () {
*/
$(document).on('click', 'a', AJAX.requestHandler);
$(document).on('submit', 'form', AJAX.requestHandler);

// import('./server_databases')
// .then((module) => {
// console.log('serverr_databases');
// AJAX.registerOnload('server_databases_new.js', module.onload1);
// AJAX.registerTeardown('server_databases_new.js', module.teardown1);
// AJAX.fireOnload('server_databases_new.js');
// // AJAX.fireTeardown('server_databases_new.js');


// })
// .catch(e => console.log(e));

// if( 1 === 1 ) {
// import('./server_privileges')
// .then((module) => {
// AJAX.registerOnload('server_privileges_new.js', module.onload1);
// AJAX.registerTeardown('server_privileges_new.js', module.teardown1);
// AJAX.fireOnload('server_privileges_new.js');
// // AJAX.fireTeardown('server_databases_new.js');
// })
// .catch(e => console.log(e));
// }

// server_databases();
2 changes: 1 addition & 1 deletion js/src/utils/show_ajax_messages.js
Expand Up @@ -8,7 +8,7 @@
* Module imports
*/
import { PMA_Messages as PMA_messages } from '../variables/export_variables';
import { PMA_highlightSQL } from './sql';
// import { PMA_highlightSQL } from './sql';

/**
* @var int ajax_message_count Number of AJAX messages shown since page load
Expand Down
2 changes: 0 additions & 2 deletions libraries/classes/Scripts.php
Expand Up @@ -37,8 +37,6 @@ class Scripts
*/
private $_code;

private $_fileName;

/**
* Returns HTML code to include javascript file.
*
Expand Down

0 comments on commit e324ecd

Please sign in to comment.