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,16 +1,14 @@
|
||||
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 = {
|
||||
let FilterDialog = {
|
||||
'dialog': function(handler) {
|
||||
let title = gettext('Sort/Filter options');
|
||||
axios.get(
|
||||
@@ -238,6 +236,6 @@ define([
|
||||
Alertify.filterDialog(title).resizeTo('65%', '60%');
|
||||
});
|
||||
},
|
||||
};
|
||||
return FilterDialog;
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = FilterDialog;
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
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) {
|
||||
let initModel = function(response) {
|
||||
|
||||
let order_mapping = {
|
||||
'asc': gettext('ASC'),
|
||||
@@ -127,7 +126,7 @@ define([
|
||||
|
||||
let model = new FilterCollectionModel();
|
||||
return model;
|
||||
};
|
||||
};
|
||||
|
||||
return initModel;
|
||||
});
|
||||
|
||||
module.exports = initModel;
|
||||
|
||||
Reference in New Issue
Block a user