fixes service panel toggling (#2915)

This commit is contained in:
Urvashi Gupta 2020-07-14 20:16:10 +05:30 committed by GitHub
parent bf3d7234b9
commit f00129b852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,8 +59,17 @@ ReconDialog.prototype._createDialog = function() {
this._level = DialogSystem.showDialog(dialog); this._level = DialogSystem.showDialog(dialog);
this._populateDialog(); this._populateDialog();
this._registerDialogServiceOpener();
}; };
ReconDialog.prototype._registerDialogServiceOpener = function() {
var self = this;
$('.recon-dialog-service-opener').click(function() {
self._toggleServices();
});
}
ReconDialog.prototype._onOK = function() { ReconDialog.prototype._onOK = function() {
if (this._selectedServiceRecordIndex >= 0) { if (this._selectedServiceRecordIndex >= 0) {
var record = this._serviceRecords[this._selectedServiceRecordIndex]; var record = this._serviceRecords[this._selectedServiceRecordIndex];
@ -132,11 +141,6 @@ ReconDialog.prototype._populateDialog = function() {
for (var i = 0; i < services.length; i++) { for (var i = 0; i < services.length; i++) {
renderService(services[i]); renderService(services[i]);
} }
$('.recon-dialog-service-opener').click(function() {
self._toggleServices();
});
} }
}; };