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

@@ -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();