fixes service panel toggling (#2915)
This commit is contained in:
parent
bf3d7234b9
commit
f00129b852
@ -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();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user