mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix alignment of Connection type toggle switch of pgagent. Fixes #3974
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user