mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Update filter dialogue Javascript to use ES6.
This commit is contained in:
committed by
Dave Page
parent
a97e4c76e4
commit
78c3db6fc9
@@ -1,14 +1,12 @@
|
||||
define([
|
||||
'sources/gettext', 'sources/url_for', 'jquery', 'underscore', 'underscore.string',
|
||||
'pgadmin.alertifyjs', 'sources/pgadmin', 'backbone',
|
||||
'pgadmin.backgrid', 'pgadmin.backform', 'axios',
|
||||
'sources/sqleditor/query_tool_actions',
|
||||
'sources/sqleditor/filter_dialog_model',
|
||||
//'pgadmin.browser.node.ui',
|
||||
], function(
|
||||
gettext, url_for, $, _, S, Alertify, pgAdmin, Backbone,
|
||||
Backgrid, Backform, axios, queryToolActions, filterDialogModel
|
||||
) {
|
||||
import gettext from 'sources/gettext';
|
||||
import url_for from 'sources/url_for';
|
||||
import $ from 'jquery';
|
||||
import Alertify from 'pgadmin.alertifyjs';
|
||||
import pgAdmin from 'sources/pgadmin';
|
||||
import Backform from 'pgadmin.backform';
|
||||
import axios from 'axios';
|
||||
import queryToolActions from 'sources/sqleditor/query_tool_actions';
|
||||
import filterDialogModel from 'sources/sqleditor/filter_dialog_model';
|
||||
|
||||
let FilterDialog = {
|
||||
'dialog': function(handler) {
|
||||
@@ -239,5 +237,5 @@ define([
|
||||
});
|
||||
},
|
||||
};
|
||||
return FilterDialog;
|
||||
});
|
||||
|
||||
module.exports = FilterDialog;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
define([
|
||||
'sources/gettext', 'underscore', 'sources/pgadmin',
|
||||
'pgadmin.backform', 'pgadmin.backgrid',
|
||||
], function(
|
||||
gettext, _, pgAdmin, Backform, Backgrid
|
||||
) {
|
||||
import gettext from 'sources/gettext';
|
||||
import _ from 'underscore';
|
||||
import pgAdmin from 'sources/pgadmin';
|
||||
import Backgrid from 'pgadmin.backgrid';
|
||||
import Backform from 'pgadmin.backform';
|
||||
|
||||
let initModel = function(response) {
|
||||
|
||||
@@ -129,5 +128,5 @@ define([
|
||||
return model;
|
||||
};
|
||||
|
||||
return initModel;
|
||||
});
|
||||
|
||||
module.exports = initModel;
|
||||
|
||||
Reference in New Issue
Block a user