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