mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-28 17:24:47 -06:00
Remove some unused events.
This commit is contained in:
parent
019c1302cb
commit
9bbc05051c
@ -106,13 +106,6 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
|
|||||||
pgBrowser.messages['NO_PRIV_SELECTED'] =
|
pgBrowser.messages['NO_PRIV_SELECTED'] =
|
||||||
'{{ _('At least one privilege should be selected.') }}';
|
'{{ _('At least one privilege should be selected.') }}';
|
||||||
|
|
||||||
pgBrowser.Events.on(
|
|
||||||
'pgadmin:server:disconnect', this.callbacks.disconnect_server
|
|
||||||
);
|
|
||||||
pgBrowser.Events.on(
|
|
||||||
'pgadmin:server:connect', this.callbacks.connect_server
|
|
||||||
);
|
|
||||||
|
|
||||||
_.bindAll(this, 'connection_lost');
|
_.bindAll(this, 'connection_lost');
|
||||||
pgBrowser.Events.on(
|
pgBrowser.Events.on(
|
||||||
'pgadmin:server:connection:lost', this.connection_lost
|
'pgadmin:server:connection:lost', this.connection_lost
|
||||||
@ -206,7 +199,11 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
|
|||||||
delete pgBrowser.serverInfo[d._id]
|
delete pgBrowser.serverInfo[d._id]
|
||||||
}
|
}
|
||||||
pgBrowser.enable_disable_menus(i);
|
pgBrowser.enable_disable_menus(i);
|
||||||
obj.trigger('server-disconnected', obj, i, d);
|
// Trigger server disconnect event
|
||||||
|
pgBrowser.Events.trigger(
|
||||||
|
'pgadmin:server:disconnect',
|
||||||
|
{item: i, data: d}, false
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user