Fix alignment of Connection type toggle switch of pgagent. Fixes #3974

This commit is contained in:
Akshay Joshi
2019-02-13 13:03:44 +05:30
parent f72dcc23ea
commit 0aa93ac3ba
3 changed files with 4 additions and 2 deletions

View File

@@ -18,5 +18,6 @@ Bug fixes
| `Bug #3873 <https://redmine.postgresql.org/issues/3873>`_ - Fix context sub-menu alignment on Safari.
| `Bug #3942 <https://redmine.postgresql.org/issues/3942>`_ - Close connections gracefully when the user logs out of pgAdmin.
| `Bug #3963 <https://redmine.postgresql.org/issues/3963>`_ - Fix alignment of import/export toggle switch.
| `Bug #3974 <https://redmine.postgresql.org/issues/3974>`_ - Fix alignment of Connection type toggle switch of pgagent.
| `Bug #3981 <https://redmine.postgresql.org/issues/3981>`_ - Fix the query to set bytea_output so that read-only standbys don't consider it a write query.
| `Bug #3985 <https://redmine.postgresql.org/issues/3985>`_ - Don't embed docs and external sites in iframes, to allow the external sites to set X-FRAME-OPTIONS = DENY for security.

View File

@@ -153,7 +153,7 @@ define('pgadmin.node.pga_jobstep', [
disabled: function(m) { return !m.get('jstkind'); },
options: {
'onText': gettext('Local'), 'offText': gettext('Remote'),
'onColor': 'primary', 'offColor': 'primary',
'onColor': 'primary', 'offColor': 'primary', width: '65',
},
},{
id: 'jstconntype', label: gettext('Connection type'),
@@ -166,7 +166,7 @@ define('pgadmin.node.pga_jobstep', [
},
options: {
'onText': gettext('Local'), 'offText': gettext('Remote'),
'onColor': 'primary', 'offColor': 'primary',
'onColor': 'primary', 'offColor': 'primary', width: '65',
}, helpMessage: gettext('Select <b>Local</b> if the job step will execute on the local database server, or <b>Remote</b> to specify a remote database server.'),
},{
id: 'jstdbname', label: gettext('Database'), type: 'text',

View File

@@ -528,6 +528,7 @@ define([
type: 'checkbox',
}).prop('checked', rawValue).prop('disabled', !editable).attr('data-toggle', 'toggle')
.attr('data-size', options.size).attr('data-on', options.onText).attr('data-off', options.offText)
.attr('data-width', options.width).attr('data-height', options.height)
.attr('data-onstyle', options.onColor).attr('data-offstyle', options.offColor));
this.$input = this.$el.find('input[type=checkbox]').first();